Enum itron::task::SetPriorityError [−][src]
pub enum SetPriorityError {
BadContext(MaybeKind),
BadId(MaybeKind),
BadState(MaybeKind),
BadParam(MaybeKind),
AccessDenied(MaybeKind),
}
This is supported on crate feature
unstable
only.Expand description
Error type for TaskRef::set_priority
.
This type is an error kind type.
Variants
BadContext(MaybeKind)
Requires: cfg(not(feature = "none"))
Tuple Fields of BadContext
0: MaybeKind
BadId(MaybeKind)
Requires: cfg(not(feature = "none"))
Tuple Fields of BadId
0: MaybeKind
BadState(MaybeKind)
The task is dormant.
Requires: cfg(not(feature = "none"))
Tuple Fields of BadState
0: MaybeKind
BadParam(MaybeKind)
Bad parameter.
-
The task is a restricted task, for which changing the priority is not supported (NGKI1186).
-
The specified priority is out of range.
-
The task owns a priority-ceiling mutex, and the specified priority is higher than the mutex’s priority ceiling.
Requires: cfg(not(feature = "none"))
Tuple Fields of BadParam
0: MaybeKind
AccessDenied(MaybeKind)
Requires: cfg(any())
Tuple Fields of AccessDenied
0: MaybeKind
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 !=
.