pub struct Delay<T>(pub T, pub Duration);
Expand description
Associate a delay with a value
Tuple Fields§
§0: T
§1: Duration
Implementations§
Trait Implementations§
Source§impl<T: Ord> Ord for Delay<T>
impl<T: Ord> Ord for Delay<T>
Source§impl<T: PartialOrd> PartialOrd for Delay<T>
impl<T: PartialOrd> PartialOrd for Delay<T>
impl<T: Eq> Eq for Delay<T>
impl<T> StructuralPartialEq for Delay<T>
Auto Trait Implementations§
impl<T> Freeze for Delay<T>where
T: Freeze,
impl<T> RefUnwindSafe for Delay<T>where
T: RefUnwindSafe,
impl<T> Send for Delay<T>where
T: Send,
impl<T> Sync for Delay<T>where
T: Sync,
impl<T> Unpin for Delay<T>where
T: Unpin,
impl<T> UnwindSafe for Delay<T>where
T: UnwindSafe,
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