Enum tokio::sync::SetError [−][src]
pub enum SetError<T> { AlreadyInitializedError(T), InitializingError(T), }
Errors that can be returned from OnceCell::set
Variants
Error resulting from OnceCell::set
calls if the cell was previously initialized.
Error resulting from OnceCell::set
calls when the cell is currently being
initialized during the calls to that method.
Implementations
impl<T> SetError<T>
[src]
impl<T> SetError<T>
[src]pub fn is_already_init_err(&self) -> bool
[src]
Whether SetError
is SetError::AlreadyInitializedError
.
pub fn is_initializing_err(&self) -> bool
[src]
Whether SetError
is SetError::InitializingError
Trait Implementations
impl<T> StructuralPartialEq for SetError<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for SetError<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for SetError<T> where
T: Send,
T: Send,
impl<T> Sync for SetError<T> where
T: Sync,
T: Sync,
impl<T> Unpin for SetError<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for SetError<T> where
T: UnwindSafe,
T: UnwindSafe,