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