Enum itron::task::SuspendError [−][src]
pub enum SuspendError {
BadContext(MaybeKind),
BadId(MaybeKind),
NotSupported(MaybeKind),
AccessDenied(MaybeKind),
BadState(MaybeKind),
QueueOverflow(MaybeKind),
}
This is supported on crate feature
unstable
only.Expand description
Error type for TaskRef::suspend
.
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
NotSupported(MaybeKind)
The task is a restricted task.
Requires: cfg(all(not(feature = "none"), feature = "rstr_task"))
Tuple Fields of NotSupported
0: MaybeKind
AccessDenied(MaybeKind)
Requires: cfg(any())
Tuple Fields of AccessDenied
0: MaybeKind
BadState(MaybeKind)
Bad state.
- The task is dormant.
- The task has a pending termination request.
Requires: cfg(not(feature = "none"))
Tuple Fields of BadState
0: MaybeKind
QueueOverflow(MaybeKind)
The task is already suspended.
Requires: cfg(not(feature = "none"))
Tuple Fields of QueueOverflow
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 !=
.