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
Error resulting from OnceCell::set
calls if the cell was previously initialized.
Error resulting from OnceCell::set
calls when the cell is currently being
inintialized during the calls to that method.
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,