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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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)>
Returns 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 for TryGetError
impl PartialEq for TryGetError
Source§impl PartialOrd for TryGetError
impl PartialOrd for TryGetError
impl Copy for TryGetError
impl Eq for TryGetError
impl StructuralPartialEq for TryGetError
Auto Trait Implementations§
impl Freeze for TryGetError
impl RefUnwindSafe for TryGetError
impl Send for TryGetError
impl Sync for TryGetError
impl Unpin for TryGetError
impl UnwindSafe for TryGetError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more