Enum itron_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
0: MaybeKind
Requires: cfg(not(feature = "none"))
BadId(MaybeKind)
Tuple Fields
0: MaybeKind
Requires: cfg(not(feature = "none"))
AccessDenied(MaybeKind)
Tuple Fields
0: MaybeKind
Requires: cfg(any())
BadParam(MaybeKind)
Tuple Fields
0: MaybeKind
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
0: MaybeKind
The calling task already owns the mutex.
Requires: cfg(not(feature = "none"))
Timeout(MaybeKind)
Tuple Fields
0: MaybeKind
Requires: cfg(not(feature = "none"))
Trait Implementations
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 !=
.