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
sourceimpl Clone for UnlockMutexError
impl Clone for UnlockMutexError
sourcefn clone(&self) -> UnlockMutexError
fn clone(&self) -> UnlockMutexError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UnlockMutexError
impl Debug for UnlockMutexError
sourceimpl From<UnlockMutexError> for ResultCode
impl From<UnlockMutexError> for ResultCode
sourcefn from(x: UnlockMutexError) -> Self
fn from(x: UnlockMutexError) -> Self
Converts to this type from the input type.
sourceimpl Hash for UnlockMutexError
impl Hash for UnlockMutexError
sourceimpl Ord for UnlockMutexError
impl Ord for UnlockMutexError
sourceimpl PartialEq<UnlockMutexError> for UnlockMutexError
impl PartialEq<UnlockMutexError> for UnlockMutexError
sourceimpl PartialOrd<UnlockMutexError> for UnlockMutexError
impl PartialOrd<UnlockMutexError> for UnlockMutexError
sourcefn partial_cmp(&self, other: &UnlockMutexError) -> Option<Ordering>
fn partial_cmp(&self, other: &UnlockMutexError) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
impl Copy for UnlockMutexError
impl Eq for UnlockMutexError
impl StructuralEq for UnlockMutexError
impl StructuralPartialEq for UnlockMutexError
Auto Trait Implementations
impl RefUnwindSafe for UnlockMutexError
impl Send for UnlockMutexError
impl Sync for UnlockMutexError
impl Unpin for UnlockMutexError
impl UnwindSafe for UnlockMutexError
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