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
sourceimpl Clone for GetCurrentTaskError
impl Clone for GetCurrentTaskError
sourcefn clone(&self) -> GetCurrentTaskError
fn clone(&self) -> GetCurrentTaskError
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 GetCurrentTaskError
impl Debug for GetCurrentTaskError
sourceimpl From<GetCurrentTaskError> for ResultCode
impl From<GetCurrentTaskError> for ResultCode
sourcefn from(x: GetCurrentTaskError) -> Self
fn from(x: GetCurrentTaskError) -> Self
Converts to this type from the input type.
sourceimpl Hash for GetCurrentTaskError
impl Hash for GetCurrentTaskError
sourceimpl Ord for GetCurrentTaskError
impl Ord for GetCurrentTaskError
sourceimpl PartialOrd<GetCurrentTaskError> for GetCurrentTaskError
impl PartialOrd<GetCurrentTaskError> for GetCurrentTaskError
sourcefn partial_cmp(&self, other: &GetCurrentTaskError) -> Option<Ordering>
fn partial_cmp(&self, other: &GetCurrentTaskError) -> 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 GetCurrentTaskError
impl Eq for GetCurrentTaskError
impl StructuralEq for GetCurrentTaskError
impl StructuralPartialEq for GetCurrentTaskError
Auto Trait Implementations
impl RefUnwindSafe for GetCurrentTaskError
impl Send for GetCurrentTaskError
impl Sync for GetCurrentTaskError
impl Unpin for GetCurrentTaskError
impl UnwindSafe for GetCurrentTaskError
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