Enum tokio::sync::SetError [−][src]
pub enum SetError<T> { AlreadyInitializedError(T), InitializingError(T), }
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
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,
T: RefUnwindSafe,
impl<T> Send for SetError<T> where
T: Send,
T: Send,
impl<T> Sync for SetError<T> where
T: Sync,
T: Sync,
impl<T> Unpin for SetError<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for SetError<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src][+]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,