pub enum ClockConfigError {
DivisorTooLargeError(u32),
DivisorZero(DivisorZeroError),
}Expand description
If this error occurs, the calculated baudrate divisor is too large, either because the used clock is too large, or the baudrate is too slow for the used clock frequency.
Variants§
DivisorTooLargeError(u32)
Divisor too large error.
DivisorZero(DivisorZeroError)
Divisor is zero error.
Trait Implementations§
Source§impl Debug for ClockConfigError
impl Debug for ClockConfigError
Source§impl Display for ClockConfigError
impl Display for ClockConfigError
Source§impl Error for ClockConfigError
impl Error for ClockConfigError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<DivisorZeroError> for ClockConfigError
impl From<DivisorZeroError> for ClockConfigError
Source§fn from(source: DivisorZeroError) -> Self
fn from(source: DivisorZeroError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ClockConfigError
impl PartialEq for ClockConfigError
impl Eq for ClockConfigError
impl StructuralPartialEq for ClockConfigError
Auto Trait Implementations§
impl Freeze for ClockConfigError
impl RefUnwindSafe for ClockConfigError
impl Send for ClockConfigError
impl Sync for ClockConfigError
impl Unpin for ClockConfigError
impl UnwindSafe for ClockConfigError
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