pub trait TimerExpModeInto: Into<itimerspec> {
// Required methods
fn is_valid(&self) -> bool;
fn get_flags(&self) -> TimerSetTimeFlags;
}Expand description
A trait which is implemented by TimerExpMode for each of the time types i.e AbsoluteTime and RelativeTime and provides an interface for the methods to check the instance and set flags. Also, in case if this trait would be implemented on the custom struct the instance should be convertable Into itimerspec.
Required Methods§
Sourcefn is_valid(&self) -> bool
fn is_valid(&self) -> bool
Verifies that the instance contains a valid values.
For absolute time, it should not be zero.
Sourcefn get_flags(&self) -> TimerSetTimeFlags
fn get_flags(&self) -> TimerSetTimeFlags
Should return the flags for the timer which corresponds the timer type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.