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
Expand description
Error resulting from OnceCell::set
calls if the cell was previously initialized.
Expand description
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]
impl<T> SetError<T>
[src]pub fn is_already_init_err(&self) -> bool
[src]
pub fn is_already_init_err(&self) -> bool
[src]Whether SetError
is SetError::AlreadyInitializedError
.
pub fn is_initializing_err(&self) -> bool
[src]
pub fn is_initializing_err(&self) -> bool
[src]Whether SetError
is SetError::InitializingError
Trait Implementations
impl<T: Debug> Error for SetError<T>
[src]
impl<T: Debug> Error for SetError<T>
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more