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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Address
: 0 bytesData
: 0 bytesUnknown
: 0 bytes