Enum r3_core::kernel::GetCurrentTaskError
source · #[repr(i8)]
pub enum GetCurrentTaskError {
BadContext,
}
Expand description
Error type for LocalTask::current
.
See ResultCode
for all result codes and generic descriptions.
Variants§
BadContext
CPU Lock is active, or the current context is not a task context.
Trait Implementations§
source§impl Clone for GetCurrentTaskError
impl Clone for GetCurrentTaskError
source§fn clone(&self) -> GetCurrentTaskError
fn clone(&self) -> GetCurrentTaskError
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 GetCurrentTaskError
impl Debug for GetCurrentTaskError
source§impl From<GetCurrentTaskError> for ResultCode
impl From<GetCurrentTaskError> for ResultCode
source§fn from(x: GetCurrentTaskError) -> Self
fn from(x: GetCurrentTaskError) -> Self
Converts to this type from the input type.
source§impl Hash for GetCurrentTaskError
impl Hash for GetCurrentTaskError
source§impl Ord for GetCurrentTaskError
impl Ord for GetCurrentTaskError
source§fn cmp(&self, other: &GetCurrentTaskError) -> Ordering
fn cmp(&self, other: &GetCurrentTaskError) -> 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<GetCurrentTaskError> for GetCurrentTaskError
impl PartialEq<GetCurrentTaskError> for GetCurrentTaskError
source§fn eq(&self, other: &GetCurrentTaskError) -> bool
fn eq(&self, other: &GetCurrentTaskError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<GetCurrentTaskError> for GetCurrentTaskError
impl PartialOrd<GetCurrentTaskError> for GetCurrentTaskError
source§fn partial_cmp(&self, other: &GetCurrentTaskError) -> Option<Ordering>
fn partial_cmp(&self, other: &GetCurrentTaskError) -> 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