#[non_exhaustive]pub enum DdcErrorKind {
NoAcknowledge(NoAcknowledgeSource),
Timeout,
Busy,
Unsupported,
Detached,
Other,
}Expand description
The kind of a DdcBus failure.
What a kind means to a caller: NoAcknowledge usually means
nothing answers at that address, not always (a passive adapter may refuse a first
transaction); Timeout, Busy and
Other may be transient; Unsupported and
Detached are not.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NoAcknowledge(NoAcknowledgeSource)
A byte was not acknowledged.
Timeout
The transaction did not complete in time: a clock held low too long, a stuck bus, or the implementation’s own limit.
Busy
The bus or the controller is held by someone else: lost arbitration, another master, firmware or a hardware engine.
Unsupported
An operation, address, target, segment or length this implementation cannot do, refused before bus activity.
Detached
The bus is gone: its adapter removed, the device unplugged.
Other
Any other failure, including one the implementation cannot classify.
Trait Implementations§
Source§impl Clone for DdcErrorKind
impl Clone for DdcErrorKind
Source§fn clone(&self) -> DdcErrorKind
fn clone(&self) -> DdcErrorKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DdcErrorKind
Source§impl DdcError for DdcErrorKind
A kind is an error of its own kind, for an implementation with nothing more to report
(as embedded-hal’s ErrorKind is its own Error).
impl DdcError for DdcErrorKind
A kind is an error of its own kind, for an implementation with nothing more to report
(as embedded-hal’s ErrorKind is its own Error).