#[repr(C)]pub enum SleepDuration {
D1ms,
D2ms,
D5ms,
D10ms,
D20ms,
D50ms,
ArbitraryMs(u32),
}Expand description
Sleep durations input values for the sleep API
Variants§
D1ms
Sleep for 1ms
D2ms
Sleep for 2ms
D5ms
Sleep for 5ms
D10ms
Sleep for 10ms
D20ms
Sleep for 20ms
D50ms
Sleep for 50ms
ArbitraryMs(u32)
Sleep for a user-specificed number of ms (>0)
Trait Implementations§
Source§impl From<SleepDuration> for u32
Converter for SleepDuration type to register-encoded value
impl From<SleepDuration> for u32
Converter for SleepDuration type to register-encoded value
Source§fn from(duration: SleepDuration) -> u32
fn from(duration: SleepDuration) -> u32
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SleepDuration
impl RefUnwindSafe for SleepDuration
impl Send for SleepDuration
impl Sync for SleepDuration
impl Unpin for SleepDuration
impl UnwindSafe for SleepDuration
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