pub enum TimerSlackMode {
Center,
Early,
Late,
}Expand description
Specifies the coalescing behavior for a Timer when a non-zero slack is passed to
Timer::set, or the default timer slack mode in crate::JobPolicy::TimerSlack.
Represents the ZX_TIMER_SLACK_* constants.
Variants§
Center
Coalesce with other timers within [deadline - slack, deadline + slack].
Early
Coalesce with other timers within [deadline - slack, deadline].
Late
Coalesce with other timers within [deadline, deadline + slack].
Trait Implementations§
Source§impl Clone for TimerSlackMode
impl Clone for TimerSlackMode
impl Copy for TimerSlackMode
Source§impl Debug for TimerSlackMode
impl Debug for TimerSlackMode
Source§impl Default for TimerSlackMode
impl Default for TimerSlackMode
impl Eq for TimerSlackMode
Source§impl From<TimerSlackMode> for u32
impl From<TimerSlackMode> for u32
Source§fn from(mode: TimerSlackMode) -> u32
fn from(mode: TimerSlackMode) -> u32
Converts to this type from the input type.
Source§impl Hash for TimerSlackMode
impl Hash for TimerSlackMode
Source§impl PartialEq for TimerSlackMode
impl PartialEq for TimerSlackMode
impl StructuralPartialEq for TimerSlackMode
Auto Trait Implementations§
impl Freeze for TimerSlackMode
impl RefUnwindSafe for TimerSlackMode
impl Send for TimerSlackMode
impl Sync for TimerSlackMode
impl Unpin for TimerSlackMode
impl UnsafeUnpin for TimerSlackMode
impl UnwindSafe for TimerSlackMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more