Enum itron_solid_asp3::mutex::TryLockError[][src]

pub enum TryLockError {
    BadContext(MaybeKind),
    BadId(MaybeKind),
    AccessDenied(MaybeKind),
    BadParam(MaybeKind),
    Deadlock(MaybeKind),
    Timeout(MaybeKind),
}
This is supported on crate feature unstable only.
Expand description

Error type for MutexRef::try_lock.

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

BadParam(MaybeKind)

Tuple Fields

The calling task’s priority is higher than the mutex’s priority ceiling.

Rationale

The EINVAL error of pthread_mutex_lock. This error kind is designed to accomodate any precondition violations that may occur in yet-to-be-seen kernels to be supported.

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

Deadlock(MaybeKind)

Tuple Fields

The calling task already owns the mutex.

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

Timeout(MaybeKind)

Tuple Fields

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.