pub enum LockError {
BadContext(MaybeKind),
NotSupported(MaybeKind),
BadId(MaybeKind),
AccessDenied(MaybeKind),
Released(MaybeKind),
TerminateRequest(MaybeKind),
Deleted(MaybeKind),
BadParam(MaybeKind),
Deadlock(MaybeKind),
}
Available on crate feature
unstable
only.Expand description
Error type for MutexRef::lock
.
This type is an error kind type.
Variants§
BadContext(MaybeKind)
Requires: cfg(not(feature = "none"))
NotSupported(MaybeKind)
The task is a restricted task.
Requires: cfg(all(not(feature = "none"), feature = "rstr_task"))
BadId(MaybeKind)
Requires: cfg(not(feature = "none"))
AccessDenied(MaybeKind)
Requires: cfg(any())
Released(MaybeKind)
Requires: cfg(not(feature = "none"))
TerminateRequest(MaybeKind)
Requires: cfg(not(feature = "none"))
Deleted(MaybeKind)
Requires: cfg(all(not(feature = "none"), feature = "dcre"))
BadParam(MaybeKind)
The calling task’s priority is higher than the mutex’s priority ceiling.
§Rationale
The EINVAL
error of pthread_mutex_lock
. This error kind is
designed to accomodate any precondition violations that may occur
in yet-to-be-seen kernels to be supported.
Requires: cfg(not(feature = "none"))
Deadlock(MaybeKind)
The calling task already owns the mutex.
Requires: cfg(not(feature = "none"))
Trait Implementations§
impl Copy for LockError
impl Eq for LockError
impl StructuralPartialEq for LockError
Auto Trait Implementations§
impl Freeze for LockError
impl RefUnwindSafe for LockError
impl Send for LockError
impl Sync for LockError
impl Unpin for LockError
impl UnwindSafe for LockError
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