notcurses/rust/src/time.rs
joseLuís 3c8328c9cc rust: add all NcDirect methods.
- add missing ncdirect_* static inline functions.
- update Notcurses.getc().
- add NcTime constructor.
- add NcSigSet type + constructor.
- minor fixes.
2020-12-24 18:02:33 +01:00

16 lines
286 B
Rust

//! `NcTime`
///
// Expected by [`notcurses_getc`] & [`notcurses_getc_nblock`], that can't use
// libc::timespec
pub type NcTime = crate::bindings::ffi::timespec;
impl NcTime {
pub fn new() -> Self {
Self {
tv_sec: 0,
tv_nsec: 0,
}
}
}