pub enum Deadlined<T> {
Live(T),
Expired(T),
}Expand description
A value paired with a liveness state: Live until its deadline, then
Expired — the value is preserved across the flip.
Variants§
Implementations§
Trait Implementations§
impl<T: Copy> Copy for Deadlined<T>
impl<T: Eq> Eq for Deadlined<T>
impl<T: PartialEq> StructuralPartialEq for Deadlined<T>
Auto Trait Implementations§
impl<T> Freeze for Deadlined<T>where
T: Freeze,
impl<T> RefUnwindSafe for Deadlined<T>where
T: RefUnwindSafe,
impl<T> Send for Deadlined<T>where
T: Send,
impl<T> Sync for Deadlined<T>where
T: Sync,
impl<T> Unpin for Deadlined<T>where
T: Unpin,
impl<T> UnsafeUnpin for Deadlined<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Deadlined<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