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