Enum r3_core::kernel::LockMutexError
source · #[repr(i8)]
pub enum LockMutexError {
NoAccess,
BadContext,
Interrupted,
WouldDeadlock,
BadParam,
Abandoned,
}
Expand description
Error type for Mutex::lock
.
See ResultCode
for all result codes and generic descriptions.
Variants§
NoAccess
Invalid object access.
BadContext
CPU Lock is active, or the current context is not waitable.
Interrupted
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
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§
source§impl Clone for LockMutexError
impl Clone for LockMutexError
source§fn clone(&self) -> LockMutexError
fn clone(&self) -> LockMutexError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LockMutexError
impl Debug for LockMutexError
source§impl From<LockMutexError> for ResultCode
impl From<LockMutexError> for ResultCode
source§fn from(x: LockMutexError) -> Self
fn from(x: LockMutexError) -> Self
Converts to this type from the input type.
source§impl From<WaitError> for LockMutexError
impl From<WaitError> for LockMutexError
source§impl Hash for LockMutexError
impl Hash for LockMutexError
source§impl Ord for LockMutexError
impl Ord for LockMutexError
source§fn cmp(&self, other: &LockMutexError) -> Ordering
fn cmp(&self, other: &LockMutexError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<LockMutexError> for LockMutexError
impl PartialEq<LockMutexError> for LockMutexError
source§fn eq(&self, other: &LockMutexError) -> bool
fn eq(&self, other: &LockMutexError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<LockMutexError> for LockMutexError
impl PartialOrd<LockMutexError> for LockMutexError
source§fn partial_cmp(&self, other: &LockMutexError) -> Option<Ordering>
fn partial_cmp(&self, other: &LockMutexError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more