Enum embedded_hal::i2c::NoAcknowledgeSource
source · 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§
source§impl Clone for NoAcknowledgeSource
impl Clone for NoAcknowledgeSource
source§fn clone(&self) -> NoAcknowledgeSource
fn clone(&self) -> NoAcknowledgeSource
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 NoAcknowledgeSource
impl Debug for NoAcknowledgeSource
source§impl Display for NoAcknowledgeSource
impl Display for NoAcknowledgeSource
source§impl Hash for NoAcknowledgeSource
impl Hash for NoAcknowledgeSource
source§impl Ord for NoAcknowledgeSource
impl Ord for NoAcknowledgeSource
source§fn cmp(&self, other: &NoAcknowledgeSource) -> Ordering
fn cmp(&self, other: &NoAcknowledgeSource) -> Ordering
1.21.0 · source§fn 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
source§impl PartialEq for NoAcknowledgeSource
impl PartialEq for NoAcknowledgeSource
source§fn eq(&self, other: &NoAcknowledgeSource) -> bool
fn eq(&self, other: &NoAcknowledgeSource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NoAcknowledgeSource
impl PartialOrd for NoAcknowledgeSource
source§fn partial_cmp(&self, other: &NoAcknowledgeSource) -> Option<Ordering>
fn partial_cmp(&self, other: &NoAcknowledgeSource) -> Option<Ordering>
1.0.0 · source§fn 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 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§
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