pub struct Delay {
pub state: Mutex<DelayState>,
}Expand description
A lazy one-time computation (forced at most once, result cached).
Fields§
§state: Mutex<DelayState>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Delay
impl !Send for Delay
impl !Sync for Delay
impl RefUnwindSafe for Delay
impl Unpin for Delay
impl UnsafeUnpin for Delay
impl UnwindSafe for Delay
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