Enum r3::kernel::ParkTimeoutError
source · pub enum ParkTimeoutError {
BadContext,
Interrupted,
Timeout,
BadParam,
}
Expand description
Error type for Kernel::park_timeout
.
See ResultCode
for all result codes and generic descriptions.
Variants
BadContext
CPU Lock is active, or the current context is not waitable.
Interrupted
Timeout
BadParam
The timeout duration is negative.
Trait Implementations
sourceimpl Clone for ParkTimeoutError
impl Clone for ParkTimeoutError
sourcefn clone(&self) -> ParkTimeoutError
fn clone(&self) -> ParkTimeoutError
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 ParkTimeoutError
impl Debug for ParkTimeoutError
sourceimpl From<ParkTimeoutError> for ResultCode
impl From<ParkTimeoutError> for ResultCode
sourcefn from(x: ParkTimeoutError) -> ResultCode
fn from(x: ParkTimeoutError) -> ResultCode
Converts to this type from the input type.
sourceimpl From<WaitTimeoutError> for ParkTimeoutError
impl From<WaitTimeoutError> for ParkTimeoutError
sourcefn from(x: WaitTimeoutError) -> ParkTimeoutError
fn from(x: WaitTimeoutError) -> ParkTimeoutError
Converts to this type from the input type.
sourceimpl Hash for ParkTimeoutError
impl Hash for ParkTimeoutError
sourceimpl Ord for ParkTimeoutError
impl Ord for ParkTimeoutError
sourcefn cmp(&self, other: &ParkTimeoutError) -> Ordering
fn cmp(&self, other: &ParkTimeoutError) -> 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<ParkTimeoutError> for ParkTimeoutError
impl PartialEq<ParkTimeoutError> for ParkTimeoutError
sourcefn eq(&self, other: &ParkTimeoutError) -> bool
fn eq(&self, other: &ParkTimeoutError) -> bool
sourceimpl PartialOrd<ParkTimeoutError> for ParkTimeoutError
impl PartialOrd<ParkTimeoutError> for ParkTimeoutError
sourcefn partial_cmp(&self, other: &ParkTimeoutError) -> Option<Ordering>
fn partial_cmp(&self, other: &ParkTimeoutError) -> 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 ParkTimeoutError
impl Eq for ParkTimeoutError
impl StructuralEq for ParkTimeoutError
impl StructuralPartialEq for ParkTimeoutError
Auto Trait Implementations
impl RefUnwindSafe for ParkTimeoutError
impl Send for ParkTimeoutError
impl Sync for ParkTimeoutError
impl Unpin for ParkTimeoutError
impl UnwindSafe for ParkTimeoutError
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