Enum tokio::sync::SetError[][src]

pub enum SetError<T> {
    AlreadyInitializedError(T),
    InitializingError(T),
}
This is supported on crate feature sync only.

Errors that can be returned from OnceCell::set

Variants

AlreadyInitializedError(T)

Error resulting from OnceCell::set calls if the cell was previously initialized.

InitializingError(T)

Error resulting from OnceCell::set calls when the cell is currently being inintialized during the calls to that method.

Implementations

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: Debug> Debug for SetError<T>[src]

impl<T> Display for SetError<T>[src]

impl<T: Debug> Error for SetError<T>[src]

impl<T: PartialEq> PartialEq<SetError<T>> for SetError<T>[src]

impl<T> StructuralPartialEq for SetError<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for SetError<T> where
    T: RefUnwindSafe

impl<T> Send for SetError<T> where
    T: Send

impl<T> Sync for SetError<T> where
    T: Sync

impl<T> Unpin for SetError<T> where
    T: Unpin

impl<T> UnwindSafe for SetError<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.