Enum conquer_once::TryGetError
source · pub enum TryGetError {
Uninit,
WouldBlock,
}
Expand description
Possible error variants of non-blocking fallible get calls.
Variants§
Uninit
The OnceCell
is currently not initialized.
WouldBlock
The OnceCell
is currently being initialized by another thread and
the current thread would have to block.
Trait Implementations§
source§impl Clone for TryGetError
impl Clone for TryGetError
source§fn clone(&self) -> TryGetError
fn clone(&self) -> TryGetError
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 TryGetError
impl Debug for TryGetError
source§impl Display for TryGetError
impl Display for TryGetError
source§impl Error for TryGetError
impl Error for TryGetError
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 TryGetError
impl Hash for TryGetError
source§impl Ord for TryGetError
impl Ord for TryGetError
source§fn cmp(&self, other: &TryGetError) -> Ordering
fn cmp(&self, other: &TryGetError) -> 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<TryGetError> for TryGetError
impl PartialEq<TryGetError> for TryGetError
source§fn eq(&self, other: &TryGetError) -> bool
fn eq(&self, other: &TryGetError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<TryGetError> for TryGetError
impl PartialOrd<TryGetError> for TryGetError
source§fn partial_cmp(&self, other: &TryGetError) -> Option<Ordering>
fn partial_cmp(&self, other: &TryGetError) -> 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