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 moresourceimpl 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
sourcefn cmp(&self, other: &ActivateTaskError) -> Ordering
fn cmp(&self, other: &ActivateTaskError) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ActivateTaskError> for ActivateTaskError
impl PartialEq<ActivateTaskError> for ActivateTaskError
sourcefn eq(&self, other: &ActivateTaskError) -> bool
fn eq(&self, other: &ActivateTaskError) -> bool
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>
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 moreimpl 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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