pub trait DdcError: Debug {
// Required method
fn kind(&self) -> DdcErrorKind;
}Expand description
An error of a DdcBus, classified.
Implemented for Infallible and () (kind DdcErrorKind::Other), so test doubles
can use either, and for DdcErrorKind itself.
Required Methods§
Sourcefn kind(&self) -> DdcErrorKind
fn kind(&self) -> DdcErrorKind
What kind of failure this is.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Implementors§
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).