pub enum NoAcknowledgeSource {
Address,
Data,
Unknown,
}
Expand description
I2C no acknowledge error source
In cases where it is possible, a device should indicate if a no acknowledge
response was received to an address versus a no acknowledge to a data byte.
Where it is not possible to differentiate, Unknown
should be indicated.
Variants
Address
The device did not acknowledge its address. The device may be missing.
Data
The device did not acknowledge the data. It may not be ready to process requests at the moment.
Unknown
Either the device did not acknowledge its address or the data, but it is unknown which.
Trait Implementations
sourceimpl Clone for NoAcknowledgeSource
impl Clone for NoAcknowledgeSource
sourcefn clone(&self) -> NoAcknowledgeSource
fn clone(&self) -> NoAcknowledgeSource
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 more
sourceimpl Debug for NoAcknowledgeSource
impl Debug for NoAcknowledgeSource
sourceimpl Display for NoAcknowledgeSource
impl Display for NoAcknowledgeSource
sourceimpl Hash for NoAcknowledgeSource
impl Hash for NoAcknowledgeSource
sourceimpl Ord for NoAcknowledgeSource
impl Ord for NoAcknowledgeSource
sourceimpl PartialOrd<NoAcknowledgeSource> for NoAcknowledgeSource
impl PartialOrd<NoAcknowledgeSource> for NoAcknowledgeSource
sourcefn partial_cmp(&self, other: &NoAcknowledgeSource) -> Option<Ordering>
fn partial_cmp(&self, other: &NoAcknowledgeSource) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
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 more
impl Copy for NoAcknowledgeSource
impl Eq for NoAcknowledgeSource
impl StructuralEq for NoAcknowledgeSource
impl StructuralPartialEq for NoAcknowledgeSource
Auto Trait Implementations
impl RefUnwindSafe for NoAcknowledgeSource
impl Send for NoAcknowledgeSource
impl Sync for NoAcknowledgeSource
impl Unpin for NoAcknowledgeSource
impl UnwindSafe for NoAcknowledgeSource
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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