Enum r3_core::kernel::TryLockMutexError
source · #[repr(i8)]
pub enum TryLockMutexError {
NoAccess,
BadContext,
Timeout,
WouldDeadlock,
BadParam,
Abandoned,
}
Expand description
Error type for Mutex::try_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 a task context.
Timeout
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
sourceimpl Clone for TryLockMutexError
impl Clone for TryLockMutexError
sourcefn clone(&self) -> TryLockMutexError
fn clone(&self) -> TryLockMutexError
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 TryLockMutexError
impl Debug for TryLockMutexError
sourceimpl From<TryLockMutexError> for ResultCode
impl From<TryLockMutexError> for ResultCode
sourcefn from(x: TryLockMutexError) -> Self
fn from(x: TryLockMutexError) -> Self
Converts to this type from the input type.
sourceimpl Hash for TryLockMutexError
impl Hash for TryLockMutexError
sourceimpl Ord for TryLockMutexError
impl Ord for TryLockMutexError
sourcefn cmp(&self, other: &TryLockMutexError) -> Ordering
fn cmp(&self, other: &TryLockMutexError) -> 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<TryLockMutexError> for TryLockMutexError
impl PartialEq<TryLockMutexError> for TryLockMutexError
sourcefn eq(&self, other: &TryLockMutexError) -> bool
fn eq(&self, other: &TryLockMutexError) -> bool
sourceimpl PartialOrd<TryLockMutexError> for TryLockMutexError
impl PartialOrd<TryLockMutexError> for TryLockMutexError
sourcefn partial_cmp(&self, other: &TryLockMutexError) -> Option<Ordering>
fn partial_cmp(&self, other: &TryLockMutexError) -> 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 TryLockMutexError
impl Eq for TryLockMutexError
impl StructuralEq for TryLockMutexError
impl StructuralPartialEq for TryLockMutexError
Auto Trait Implementations
impl RefUnwindSafe for TryLockMutexError
impl Send for TryLockMutexError
impl Sync for TryLockMutexError
impl Unpin for TryLockMutexError
impl UnwindSafe for TryLockMutexError
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