logo
#[repr(i8)]
pub enum LockError<Guard> {
    BadContext,
    Interrupted,
    WouldDeadlock,
    BadParam,
    Abandoned(Guard),
}
This is supported on crate feature sync only.
Expand description

Error type of GenericMutex::lock.

Variants

BadContext

CPU Lock is active, or the current context is not waitable.

Interrupted

The wait operation was interrupted by Task::interrupt.

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(Guard)

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.