Enum r3_core::kernel::UnlockMutexError
source · #[repr(i8)]
pub enum UnlockMutexError {
NoAccess,
BadContext,
NotOwner,
BadObjectState,
}
Expand description
Error type for Mutex::unlock
.
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.
NotOwner
The current task does not currently own the mutex.
BadObjectState
The correct mutex unlocking order is violated.
Trait Implementations§
source§impl Clone for UnlockMutexError
impl Clone for UnlockMutexError
source§fn clone(&self) -> UnlockMutexError
fn clone(&self) -> UnlockMutexError
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 UnlockMutexError
impl Debug for UnlockMutexError
source§impl From<UnlockMutexError> for ResultCode
impl From<UnlockMutexError> for ResultCode
source§fn from(x: UnlockMutexError) -> Self
fn from(x: UnlockMutexError) -> Self
Converts to this type from the input type.
source§impl Hash for UnlockMutexError
impl Hash for UnlockMutexError
source§impl Ord for UnlockMutexError
impl Ord for UnlockMutexError
source§fn cmp(&self, other: &UnlockMutexError) -> Ordering
fn cmp(&self, other: &UnlockMutexError) -> 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<UnlockMutexError> for UnlockMutexError
impl PartialEq<UnlockMutexError> for UnlockMutexError
source§fn eq(&self, other: &UnlockMutexError) -> bool
fn eq(&self, other: &UnlockMutexError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<UnlockMutexError> for UnlockMutexError
impl PartialOrd<UnlockMutexError> for UnlockMutexError
source§fn partial_cmp(&self, other: &UnlockMutexError) -> Option<Ordering>
fn partial_cmp(&self, other: &UnlockMutexError) -> 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