pub struct OneTime<T> { /* private fields */ }
Expand description
Encapsulation of a RwLock<Option
Implementations
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for OneTime<T>
impl<T> Send for OneTime<T>where
T: Send + Sync,
impl<T> Sync for OneTime<T>where
T: Send + Sync,
impl<T> Unpin for OneTime<T>
impl<T> !UnwindSafe for OneTime<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more