Enum contiguous_mem::error::LockingError
source · pub enum LockingError {
Poisoned {
source: LockSource,
},
WouldBlock,
}Variants§
Poisoned
Fields
§
source: LockSourceSpecifies source of poisoning.
Not lockable because the mutex/lock was poisoned.
WouldBlock
Not lockable because the lock would be blocking.
Trait Implementations§
source§impl Debug for LockingError
impl Debug for LockingError
source§impl Display for LockingError
Available on crate features std or error_in_core only.
impl Display for LockingError
Available on crate features
std or error_in_core only.source§impl Error for LockingError
Available on crate features std or error_in_core only.
impl Error for LockingError
Available on crate features
std or error_in_core only.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 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.
source§impl From<PoisonError<MutexGuard<'_, *mut u8>>> for LockingError
Available on crate feature std only.
impl From<PoisonError<MutexGuard<'_, *mut u8>>> for LockingError
Available on crate feature
std only.source§fn from(_: PoisonError<MutexGuard<'_, *mut u8>>) -> Self
fn from(_: PoisonError<MutexGuard<'_, *mut u8>>) -> Self
Converts to this type from the input type.
source§impl From<PoisonError<MutexGuard<'_, AllocationTracker>>> for LockingError
Available on crate feature std only.
impl From<PoisonError<MutexGuard<'_, AllocationTracker>>> for LockingError
Available on crate feature
std only.source§fn from(_: PoisonError<MutexGuard<'_, AllocationTracker>>) -> Self
fn from(_: PoisonError<MutexGuard<'_, AllocationTracker>>) -> Self
Converts to this type from the input type.
source§impl<T> From<TryLockError<T>> for LockingErrorwhere
LockingError: From<PoisonError<T>>,
Available on crate feature std only.
impl<T> From<TryLockError<T>> for LockingErrorwhere LockingError: From<PoisonError<T>>,
Available on crate feature
std only.source§fn from(value: TryLockError<T>) -> Self
fn from(value: TryLockError<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
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