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§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§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
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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
)§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§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
)