Enum TimerSlackMode
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§
§impl Clone for TimerSlackMode
impl Clone for TimerSlackMode
§fn clone(&self) -> TimerSlackMode
fn clone(&self) -> TimerSlackMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TimerSlackMode
§impl Debug for TimerSlackMode
impl Debug for TimerSlackMode
§impl Default for TimerSlackMode
impl Default for TimerSlackMode
§fn default() -> TimerSlackMode
fn default() -> TimerSlackMode
Returns the “default value” for a type. Read more
impl Eq for TimerSlackMode
§impl From<TimerSlackMode> for u32
impl From<TimerSlackMode> for u32
§fn from(mode: TimerSlackMode) -> u32
fn from(mode: TimerSlackMode) -> u32
Converts to this type from the input type.
§impl Hash for TimerSlackMode
impl Hash for TimerSlackMode
§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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
Source§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to Self