Enum r3_core::kernel::ActivateTaskError
source · #[repr(i8)]
pub enum ActivateTaskError {
NoAccess,
BadContext,
QueueOverflow,
}
Expand description
Error type for Task::activate
.
See ResultCode
for all result codes and generic descriptions.
Variants§
NoAccess
Invalid object access.
BadContext
CPU Lock is active.
QueueOverflow
The task is already active (not in the Dormant state).
This error code originates from E_QOVR
defined in the μITRON 4.0
specification. In this specification, the act_tsk
(activate task)
system service works by enqueueing an activation request. E_QOVR
is used to report a condition in which an enqueue count limit has
been reached. Our kernel doesn’t support enqueueing activation
request (at the moment), so any attempts to activate an
already-active task will fail.
Trait Implementations§
source§impl Clone for ActivateTaskError
impl Clone for ActivateTaskError
source§fn clone(&self) -> ActivateTaskError
fn clone(&self) -> ActivateTaskError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ActivateTaskError
impl Debug for ActivateTaskError
source§impl From<ActivateTaskError> for ResultCode
impl From<ActivateTaskError> for ResultCode
source§fn from(x: ActivateTaskError) -> Self
fn from(x: ActivateTaskError) -> Self
Converts to this type from the input type.
source§impl Hash for ActivateTaskError
impl Hash for ActivateTaskError
source§impl Ord for ActivateTaskError
impl Ord for ActivateTaskError
source§fn cmp(&self, other: &ActivateTaskError) -> Ordering
fn cmp(&self, other: &ActivateTaskError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ActivateTaskError> for ActivateTaskError
impl PartialEq<ActivateTaskError> for ActivateTaskError
source§fn eq(&self, other: &ActivateTaskError) -> bool
fn eq(&self, other: &ActivateTaskError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ActivateTaskError> for ActivateTaskError
impl PartialOrd<ActivateTaskError> for ActivateTaskError
source§fn partial_cmp(&self, other: &ActivateTaskError) -> Option<Ordering>
fn partial_cmp(&self, other: &ActivateTaskError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more