#[repr(i8)]
pub enum LockError<Guard> {
BadContext,
Interrupted,
WouldDeadlock,
BadParam,
Abandoned(Guard),
}
This is supported on crate feature
sync
only.Expand description
Error type of GenericMutex::lock
.
Variants
BadContext
CPU Lock is active, or the current context is not waitable.
Interrupted
The wait operation was interrupted by Task::interrupt
.
WouldDeadlock
The current task already owns the mutex.
BadParam
The mutex was created with the protocol attribute having the value
Ceiling
and the current task’s priority is higher than the
mutex’s priority ceiling.
Abandoned(Guard)
The previous owning task exited while holding the mutex lock. The current task shall hold the mutex lock, but is up to make the state consistent.
Trait Implementations
Auto Trait Implementations
impl<Guard> RefUnwindSafe for LockError<Guard> where
Guard: RefUnwindSafe,
impl<Guard> Send for LockError<Guard> where
Guard: Send,
impl<Guard> Sync for LockError<Guard> where
Guard: Sync,
impl<Guard> Unpin for LockError<Guard> where
Guard: Unpin,
impl<Guard> UnwindSafe for LockError<Guard> where
Guard: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more