Enum rp2040_hal::clocks::ClockError
source · #[non_exhaustive]pub enum ClockError {
CantIncreaseFreq,
FrequencyTooHigh,
FrequencyTooLow,
}
Expand description
Something when wrong setting up the clock
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CantIncreaseFreq
The frequency desired is higher than the source frequency
FrequencyTooHigh
The desired frequency is to high (would overflow an u32)
FrequencyTooLow
The desired frequency is too low (divider can’t reach the desired value)
Trait Implementations§
source§impl Clone for ClockError
impl Clone for ClockError
source§fn clone(&self) -> ClockError
fn clone(&self) -> ClockError
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 ClockError
impl Debug for ClockError
source§impl Format for ClockError
impl Format for ClockError
source§impl Hash for ClockError
impl Hash for ClockError
source§impl PartialEq for ClockError
impl PartialEq for ClockError
source§fn eq(&self, other: &ClockError) -> bool
fn eq(&self, other: &ClockError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ClockError
impl Eq for ClockError
impl StructuralPartialEq for ClockError
Auto Trait Implementations§
impl RefUnwindSafe for ClockError
impl Send for ClockError
impl Sync for ClockError
impl Unpin for ClockError
impl UnwindSafe for ClockError
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