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 moresourceimpl 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
sourcefn cmp(&self, other: &NoAcknowledgeSource) -> Ordering
fn cmp(&self, other: &NoAcknowledgeSource) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<NoAcknowledgeSource> for NoAcknowledgeSource
impl PartialEq<NoAcknowledgeSource> for NoAcknowledgeSource
sourcefn eq(&self, other: &NoAcknowledgeSource) -> bool
fn eq(&self, other: &NoAcknowledgeSource) -> bool
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>
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 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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