Enum itron_solid_fmp3::mutex::UnlockError [−][src]
pub enum UnlockError {
BadContext(MaybeKind),
BadId(MaybeKind),
AccessDenied(MaybeKind),
BadSequence(MaybeKind),
}
unstable
only.Expand description
Error type for MutexRef::unlock
.
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())
BadSequence(MaybeKind)
Tuple Fields
0: MaybeKind
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
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 !=
.