Enum mpr121_hal::Mpr121Error
source · pub enum Mpr121Error {
ChannelExceed,
ReadError(u8),
WriteError(u8),
ResetFailed {
was_read: bool,
reg: u8,
},
InitFailed,
}Variants
ChannelExceed
If an operation exceeds the channel count (typically 12).
ReadError(u8)
If a read operation failed, contains the address that failed.
WriteError(u8)
If a write operation failed, contains the address that failed.
ResetFailed
If sending the reset signal failed, contains the register that failed.
InitFailed
If the reset did not happen as expected
Trait Implementations
sourceimpl Clone for Mpr121Error
impl Clone for Mpr121Error
sourcefn clone(&self) -> Mpr121Error
fn clone(&self) -> Mpr121Error
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for Mpr121Error
impl Debug for Mpr121Error
sourceimpl Ord for Mpr121Error
impl Ord for Mpr121Error
sourcefn cmp(&self, other: &Mpr121Error) -> Ordering
fn cmp(&self, other: &Mpr121Error) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<Mpr121Error> for Mpr121Error
impl PartialEq<Mpr121Error> for Mpr121Error
sourcefn eq(&self, other: &Mpr121Error) -> bool
fn eq(&self, other: &Mpr121Error) -> bool
sourceimpl PartialOrd<Mpr121Error> for Mpr121Error
impl PartialOrd<Mpr121Error> for Mpr121Error
sourcefn partial_cmp(&self, other: &Mpr121Error) -> Option<Ordering>
fn partial_cmp(&self, other: &Mpr121Error) -> Option<Ordering>
1.0.0 · sourcefn 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 moreimpl Copy for Mpr121Error
impl Eq for Mpr121Error
impl StructuralEq for Mpr121Error
impl StructuralPartialEq for Mpr121Error
Auto Trait Implementations
impl RefUnwindSafe for Mpr121Error
impl Send for Mpr121Error
impl Sync for Mpr121Error
impl Unpin for Mpr121Error
impl UnwindSafe for Mpr121Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more