pub enum TimerError {
NotInitialized,
AlreadyRunning,
NotRunning,
InvalidFrequency(u32),
HardwareNotAvailable,
InvalidConfig,
}
Expand description
Timer and timing related errors.
Variants§
NotInitialized
Timer not initialized
AlreadyRunning
Timer already running
NotRunning
Timer not running
InvalidFrequency(u32)
Invalid timer frequency
HardwareNotAvailable
Timer hardware not available
InvalidConfig
Invalid timer configuration
Trait Implementations§
Source§impl Clone for TimerError
impl Clone for TimerError
Source§fn clone(&self) -> TimerError
fn clone(&self) -> TimerError
Returns a duplicate 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 TimerError
impl Debug for TimerError
Source§impl Display for TimerError
impl Display for TimerError
Source§impl From<TimerError> for ThreadError
impl From<TimerError> for ThreadError
Source§fn from(error: TimerError) -> Self
fn from(error: TimerError) -> Self
Converts to this type from the input type.
Source§impl From<TimerError> for TimerError
impl From<TimerError> for TimerError
Source§fn from(error: TimerError) -> Self
fn from(error: TimerError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TimerError
impl PartialEq for TimerError
impl Eq for TimerError
impl StructuralPartialEq for TimerError
Auto Trait Implementations§
impl Freeze for TimerError
impl RefUnwindSafe for TimerError
impl Send for TimerError
impl Sync for TimerError
impl Unpin for TimerError
impl UnwindSafe for TimerError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more