[][src]Enum r3::kernel::LockMutexError

#[repr(i8)]pub enum LockMutexError {
    BadId,
    BadContext,
    Interrupted,
    WouldDeadlock,
    BadParam,
    Abandoned,
}

Error type for Mutex::lock.

See ResultCode for all result codes and generic descriptions.

Variants

BadId

The mutex ID is out of range.

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

impl Clone for LockMutexError[src]

impl Copy for LockMutexError[src]

impl Debug for LockMutexError[src]

impl Eq for LockMutexError[src]

impl From<LockMutexError> for ResultCode[src]

impl From<WaitError> for LockMutexError[src]

impl Hash for LockMutexError[src]

impl Ord for LockMutexError[src]

impl PartialEq<LockMutexError> for LockMutexError[src]

impl PartialOrd<LockMutexError> for LockMutexError[src]

impl StructuralEq for LockMutexError[src]

impl StructuralPartialEq for LockMutexError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.