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
AlreadyInitializedError(T)
The cell was already initialized when OnceCell::set
was called.
InitializingError(T)
The cell is currently being initialized.
Implementations
Whether SetError
is SetError::AlreadyInitializedError
.
Whether SetError
is SetError::InitializingError