Enum spin::mutex::fair::LockRejectReason
source · pub enum LockRejectReason {
Locked,
Starved,
}
Available on crate features
mutex
and fair_mutex
only.Expand description
Indicates whether a lock was rejected due to the lock being held by another thread or due to starvation.
Variants§
Locked
The lock was rejected due to the lock being held by another thread.
Starved
The lock was rejected due to starvation.
Trait Implementations§
source§impl Debug for LockRejectReason
impl Debug for LockRejectReason
source§impl Display for LockRejectReason
impl Display for LockRejectReason
source§impl Error for LockRejectReason
impl Error for LockRejectReason
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()