Enum r3::kernel::GetCurrentTaskError
source · 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 moresourceimpl Debug for GetCurrentTaskError
impl Debug for GetCurrentTaskError
sourceimpl From<GetCurrentTaskError> for ResultCode
impl From<GetCurrentTaskError> for ResultCode
sourcefn from(x: GetCurrentTaskError) -> ResultCode
fn from(x: GetCurrentTaskError) -> ResultCode
Converts to this type from the input type.
sourceimpl Hash for GetCurrentTaskError
impl Hash for GetCurrentTaskError
sourceimpl Ord for GetCurrentTaskError
impl Ord for GetCurrentTaskError
sourcefn cmp(&self, other: &GetCurrentTaskError) -> Ordering
fn cmp(&self, other: &GetCurrentTaskError) -> 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<GetCurrentTaskError> for GetCurrentTaskError
impl PartialEq<GetCurrentTaskError> for GetCurrentTaskError
sourcefn eq(&self, other: &GetCurrentTaskError) -> bool
fn eq(&self, other: &GetCurrentTaskError) -> bool
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>
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 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 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