pub enum LockingError {
Poisoned {
source: LockSource,
},
WouldBlock {
source: LockSource,
},
}
Variants§
Poisoned
Not lockable because the mutex/lock was poisoned.
Fields
§
source: LockSource
Specifies source of poisoning.
WouldBlock
Not lockable because the lock would be blocking.
Fields
§
source: LockSource
Specifies which mutex/lock would block.
Trait Implementations§
Source§impl Debug for LockingError
impl Debug for LockingError
Source§impl Display for LockingError
Available on non-crate feature no_std
or crate feature error_in_core
only.
impl Display for LockingError
Available on non-crate feature
no_std
or crate feature error_in_core
only.Source§impl Error for LockingError
Available on non-crate feature no_std
or crate feature error_in_core
only.
impl Error for LockingError
Available on non-crate feature
no_std
or crate feature error_in_core
only.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<LockingError> for ContiguousMemoryError
impl From<LockingError> for ContiguousMemoryError
Source§fn from(layout_err: LockingError) -> Self
fn from(layout_err: LockingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LockingError
impl RefUnwindSafe for LockingError
impl Send for LockingError
impl Sync for LockingError
impl Unpin for LockingError
impl UnwindSafe for LockingError
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