Enum r3::kernel::UnlockMutexError
source · 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 moresourceimpl Debug for UnlockMutexError
impl Debug for UnlockMutexError
sourceimpl From<UnlockMutexError> for ResultCode
impl From<UnlockMutexError> for ResultCode
sourcefn from(x: UnlockMutexError) -> ResultCode
fn from(x: UnlockMutexError) -> ResultCode
Converts to this type from the input type.
sourceimpl Hash for UnlockMutexError
impl Hash for UnlockMutexError
sourceimpl Ord for UnlockMutexError
impl Ord for UnlockMutexError
sourcefn cmp(&self, other: &UnlockMutexError) -> Ordering
fn cmp(&self, other: &UnlockMutexError) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<UnlockMutexError> for UnlockMutexError
impl PartialEq<UnlockMutexError> for UnlockMutexError
sourcefn eq(&self, other: &UnlockMutexError) -> bool
fn eq(&self, other: &UnlockMutexError) -> bool
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>
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 moreimpl 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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