#[non_exhaustive]pub enum AcknowledgeCheckFailedReason {
Address,
Data,
Unknown,
}
Expand description
I2C no acknowledge error reason.
Consider this as a hint and make sure to always handle all cases.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future 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 AcknowledgeCheckFailedReason
impl Clone for AcknowledgeCheckFailedReason
Source§fn clone(&self) -> AcknowledgeCheckFailedReason
fn clone(&self) -> AcknowledgeCheckFailedReason
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 AcknowledgeCheckFailedReason
impl Debug for AcknowledgeCheckFailedReason
Source§impl Display for AcknowledgeCheckFailedReason
impl Display for AcknowledgeCheckFailedReason
Source§impl From<&AcknowledgeCheckFailedReason> for NoAcknowledgeSource
impl From<&AcknowledgeCheckFailedReason> for NoAcknowledgeSource
Source§fn from(value: &AcknowledgeCheckFailedReason) -> Self
fn from(value: &AcknowledgeCheckFailedReason) -> Self
Converts to this type from the input type.
Source§impl Hash for AcknowledgeCheckFailedReason
impl Hash for AcknowledgeCheckFailedReason
Source§impl PartialEq for AcknowledgeCheckFailedReason
impl PartialEq for AcknowledgeCheckFailedReason
impl Copy for AcknowledgeCheckFailedReason
impl Eq for AcknowledgeCheckFailedReason
impl StructuralPartialEq for AcknowledgeCheckFailedReason
Auto Trait Implementations§
impl Freeze for AcknowledgeCheckFailedReason
impl RefUnwindSafe for AcknowledgeCheckFailedReason
impl Send for AcknowledgeCheckFailedReason
impl Sync for AcknowledgeCheckFailedReason
impl Unpin for AcknowledgeCheckFailedReason
impl UnwindSafe for AcknowledgeCheckFailedReason
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,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)