Enum tokio::sync::SetError [−][src]
pub enum SetError<T> { AlreadyInitializedError(T), InitializingError(T), }
This is supported on crate feature
sync
only.Expand description
Errors that can be returned from OnceCell::set
.
Variants
The cell was already initialized when OnceCell::set
was called.
The cell is currently being initialized.
Implementations
Whether SetError
is SetError::AlreadyInitializedError
.
Whether SetError
is SetError::InitializingError
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for SetError<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for SetError<T> where
T: UnwindSafe,