Enum conquer_once::TryInitError
source · pub enum TryInitError {
AlreadyInit,
WouldBlock,
}
Expand description
Possible error variants of non-blocking initialization calls.
Variants§
AlreadyInit
The OnceCell
is already initialized and the initialization procedure
was not called.
WouldBlock
The OnceCell
is currently being initialized by another thread and
the current thread would have to block.
Trait Implementations§
source§impl Clone for TryInitError
impl Clone for TryInitError
source§fn clone(&self) -> TryInitError
fn clone(&self) -> TryInitError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TryInitError
impl Debug for TryInitError
source§impl Display for TryInitError
impl Display for TryInitError
source§impl Error for TryInitError
impl Error for TryInitError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl Hash for TryInitError
impl Hash for TryInitError
source§impl Ord for TryInitError
impl Ord for TryInitError
source§fn cmp(&self, other: &TryInitError) -> Ordering
fn cmp(&self, other: &TryInitError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<TryInitError> for TryInitError
impl PartialEq<TryInitError> for TryInitError
source§fn eq(&self, other: &TryInitError) -> bool
fn eq(&self, other: &TryInitError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<TryInitError> for TryInitError
impl PartialOrd<TryInitError> for TryInitError
source§fn partial_cmp(&self, other: &TryInitError) -> Option<Ordering>
fn partial_cmp(&self, other: &TryInitError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more