pub enum InitState<'a, T> {
Initializing,
Initialized(&'a T),
Polling(PollInit<'a, T>),
}
Expand description
Initialization state of an InitOnce
instance.
Variants§
Initializing
The inner value is currently being initialized by another caller.
Initialized(&'a T)
The inner value is initialized.
Polling(PollInit<'a, T>)
The inner value requires initialization via PollInit
.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for InitState<'a, T>
impl<'a, T> !RefUnwindSafe for InitState<'a, T>
impl<'a, T> Send for InitState<'a, T>where
T: Sync,
impl<'a, T> Sync for InitState<'a, T>where
T: Sync,
impl<'a, T> Unpin for InitState<'a, T>
impl<'a, T> !UnwindSafe for InitState<'a, T>
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