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
sourceimpl Clone for ActivateTaskError
impl Clone for ActivateTaskError
sourcefn clone(&self) -> ActivateTaskError
fn clone(&self) -> ActivateTaskError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ActivateTaskError
impl Debug for ActivateTaskError
sourceimpl From<ActivateTaskError> for ResultCode
impl From<ActivateTaskError> for ResultCode
sourcefn from(x: ActivateTaskError) -> Self
fn from(x: ActivateTaskError) -> Self
Converts to this type from the input type.
sourceimpl Hash for ActivateTaskError
impl Hash for ActivateTaskError
sourceimpl Ord for ActivateTaskError
impl Ord for ActivateTaskError
sourceimpl PartialOrd<ActivateTaskError> for ActivateTaskError
impl PartialOrd<ActivateTaskError> for ActivateTaskError
sourcefn partial_cmp(&self, other: &ActivateTaskError) -> Option<Ordering>
fn partial_cmp(&self, other: &ActivateTaskError) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
impl Copy for ActivateTaskError
impl Eq for ActivateTaskError
impl StructuralEq for ActivateTaskError
impl StructuralPartialEq for ActivateTaskError
Auto Trait Implementations
impl RefUnwindSafe for ActivateTaskError
impl Send for ActivateTaskError
impl Sync for ActivateTaskError
impl Unpin for ActivateTaskError
impl UnwindSafe for ActivateTaskError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more