pub enum GenericSleep {
NotifyTake(Option<Instant>),
Timestamp(Instant),
}Expand description
Represents a future time to sleep until.
Variants§
NotifyTake(Option<Instant>)
Represents a future time when a notification occurs. If a timestamp is present, then it represents whichever is earlier.
Timestamp(Instant)
Represents an explicit future timestamp.
Implementations§
Source§impl GenericSleep
impl GenericSleep
Trait Implementations§
Source§impl Clone for GenericSleep
impl Clone for GenericSleep
Source§fn clone(&self) -> GenericSleep
fn clone(&self) -> GenericSleep
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GenericSleep
impl Debug for GenericSleep
impl Copy for GenericSleep
Auto Trait Implementations§
impl Freeze for GenericSleep
impl RefUnwindSafe for GenericSleep
impl Send for GenericSleep
impl Sync for GenericSleep
impl Unpin for GenericSleep
impl UnwindSafe for GenericSleep
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