Enum r3_core::kernel::InterruptTaskError
source · #[repr(i8)]
pub enum InterruptTaskError {
NoAccess,
BadContext,
BadObjectState,
}
Expand description
Error type for Task::interrupt
.
See ResultCode
for all result codes and generic descriptions.
Variants
NoAccess
Invalid object access.
BadContext
CPU Lock is active.
BadObjectState
The task is not in the Waiting state.
Trait Implementations
sourceimpl Clone for InterruptTaskError
impl Clone for InterruptTaskError
sourcefn clone(&self) -> InterruptTaskError
fn clone(&self) -> InterruptTaskError
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 InterruptTaskError
impl Debug for InterruptTaskError
sourceimpl From<InterruptTaskError> for ResultCode
impl From<InterruptTaskError> for ResultCode
sourcefn from(x: InterruptTaskError) -> Self
fn from(x: InterruptTaskError) -> Self
Converts to this type from the input type.
sourceimpl Hash for InterruptTaskError
impl Hash for InterruptTaskError
sourceimpl Ord for InterruptTaskError
impl Ord for InterruptTaskError
sourcefn cmp(&self, other: &InterruptTaskError) -> Ordering
fn cmp(&self, other: &InterruptTaskError) -> 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<InterruptTaskError> for InterruptTaskError
impl PartialEq<InterruptTaskError> for InterruptTaskError
sourcefn eq(&self, other: &InterruptTaskError) -> bool
fn eq(&self, other: &InterruptTaskError) -> bool
sourceimpl PartialOrd<InterruptTaskError> for InterruptTaskError
impl PartialOrd<InterruptTaskError> for InterruptTaskError
sourcefn partial_cmp(&self, other: &InterruptTaskError) -> Option<Ordering>
fn partial_cmp(&self, other: &InterruptTaskError) -> 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 InterruptTaskError
impl Eq for InterruptTaskError
impl StructuralEq for InterruptTaskError
impl StructuralPartialEq for InterruptTaskError
Auto Trait Implementations
impl RefUnwindSafe for InterruptTaskError
impl Send for InterruptTaskError
impl Sync for InterruptTaskError
impl Unpin for InterruptTaskError
impl UnwindSafe for InterruptTaskError
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