Enum itron_asp3::mutex::UnlockError[][src]

pub enum UnlockError {
    BadContext(MaybeKind),
    BadId(MaybeKind),
    AccessDenied(MaybeKind),
    BadSequence(MaybeKind),
}
This is supported on crate feature unstable only.
Expand description

Error type for MutexRef::unlock.

This type is an error kind type.

Variants

BadContext(MaybeKind)

Tuple Fields

Requires: cfg(not(feature = "none"))

BadId(MaybeKind)

Tuple Fields

Requires: cfg(not(feature = "none"))

AccessDenied(MaybeKind)

Tuple Fields

Requires: cfg(any())

BadSequence(MaybeKind)

Tuple Fields

The mutex is not the lastly-locked mutex currently owned by the calling task (TOPPERS third-generation kernels, E_OBJ). The mutex is not currently owned by the calling task (μITRON 4.0 and μT-Kernel, E_ILUSE).

Rationale

The name was inspired by the FTP and SMTP error 503 (bad sequence of commands) and SOLID SOLID_ERR_BADSEQUENCE. A mutex is intended to be used in a specific sequence (lock followed by unlock). The TOPPERS third-generation kernels impose a more stringent requirement on the sequence: mutexes must be unlocked in a lock-reverse order.

Requires: cfg(not(feature = "none"))

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Categorize the specified error code. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

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.