pub struct PoisonError;
Expand description
An error returned by Semaphore::acquire
and Semaphore::acquire_arc
to indicate the
Semaphore has been poisoned. See Semaphore::acquire_arc
for an example usage.
Trait Implementations§
Source§impl Clone for PoisonError
impl Clone for PoisonError
Source§fn clone(&self) -> PoisonError
fn clone(&self) -> PoisonError
Returns a duplicate 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 PoisonError
impl Debug for PoisonError
Source§impl Default for PoisonError
impl Default for PoisonError
Source§fn default() -> PoisonError
fn default() -> PoisonError
Returns the “default value” for a type. Read more
Source§impl Display for PoisonError
impl Display for PoisonError
Source§impl Error for PoisonError
impl Error for PoisonError
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 From<PoisonError> for TryAcquireError
impl From<PoisonError> for TryAcquireError
Source§fn from(_: PoisonError) -> Self
fn from(_: PoisonError) -> Self
Converts to this type from the input type.
Source§impl Hash for PoisonError
impl Hash for PoisonError
Source§impl Ord for PoisonError
impl Ord for PoisonError
Source§fn cmp(&self, other: &PoisonError) -> Ordering
fn cmp(&self, other: &PoisonError) -> 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 PoisonError
impl PartialEq for PoisonError
Source§impl PartialOrd for PoisonError
impl PartialOrd for PoisonError
impl Copy for PoisonError
impl Eq for PoisonError
impl StructuralPartialEq for PoisonError
Auto Trait Implementations§
impl Freeze for PoisonError
impl RefUnwindSafe for PoisonError
impl Send for PoisonError
impl Sync for PoisonError
impl Unpin for PoisonError
impl UnwindSafe for PoisonError
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