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§impl PartialOrd for NoAcknowledgeSource
impl PartialOrd for NoAcknowledgeSource
impl Copy for NoAcknowledgeSource
impl Eq for NoAcknowledgeSource
impl StructuralPartialEq for NoAcknowledgeSource
Auto Trait Implementations§
impl Freeze for NoAcknowledgeSource
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)