#[non_exhaustive]pub enum ThresholdStatusDecodeError {
ReservedBits {
observed: u16,
},
}Expand description
Failure decoding the threshold-status register.
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.
ReservedBits
Reserved status bits were observed set.
Trait Implementations§
Source§impl Clone for ThresholdStatusDecodeError
impl Clone for ThresholdStatusDecodeError
Source§fn clone(&self) -> ThresholdStatusDecodeError
fn clone(&self) -> ThresholdStatusDecodeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ThresholdStatusDecodeError
Source§impl Debug for ThresholdStatusDecodeError
impl Debug for ThresholdStatusDecodeError
Source§impl Display for ThresholdStatusDecodeError
impl Display for ThresholdStatusDecodeError
impl Eq for ThresholdStatusDecodeError
Source§impl Error for ThresholdStatusDecodeError
impl Error for ThresholdStatusDecodeError
1.30.0 · 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 Format for ThresholdStatusDecodeError
Available on crate feature defmt only.
impl Format for ThresholdStatusDecodeError
Available on crate feature
defmt only.impl StructuralPartialEq for ThresholdStatusDecodeError
Auto Trait Implementations§
impl Freeze for ThresholdStatusDecodeError
impl RefUnwindSafe for ThresholdStatusDecodeError
impl Send for ThresholdStatusDecodeError
impl Sync for ThresholdStatusDecodeError
impl Unpin for ThresholdStatusDecodeError
impl UnsafeUnpin for ThresholdStatusDecodeError
impl UnwindSafe for ThresholdStatusDecodeError
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