Enum SetError
enum SetError<T>
Errors that can be returned from OnceCell::set.
Variants
-
AlreadyInitializedError(T) The cell was already initialized when
OnceCell::setwas called.-
InitializingError(T) The cell is currently being initialized.
Implementations
impl<T> SetError<T>
fn is_already_init_err(self: &Self) -> boolWhether
SetErrorisSetError::AlreadyInitializedError.fn is_initializing_err(self: &Self) -> boolWhether
SetErrorisSetError::InitializingError
impl<T> Any for SetError<T>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for SetError<T>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for SetError<T>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> Display for SetError<T>
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl<T> Freeze for SetError<T>
impl<T> From for SetError<T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> RefUnwindSafe for SetError<T>
impl<T> Send for SetError<T>
impl<T> StructuralPartialEq for SetError<T>
impl<T> Sync for SetError<T>
impl<T> ToString for SetError<T>
fn to_string(self: &Self) -> String
impl<T> Unpin for SetError<T>
impl<T> UnsafeUnpin for SetError<T>
impl<T> UnwindSafe for SetError<T>
impl<T, U> Into for SetError<T>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for SetError<T>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for SetError<T>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T: $crate::cmp::Eq> Eq for SetError<T>
impl<T: $crate::cmp::PartialEq> PartialEq for SetError<T>
fn eq(self: &Self, other: &SetError<T>) -> bool
impl<T: $crate::fmt::Debug> Debug for SetError<T>
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result