Skip to main content

DdcError

Trait DdcError 

Source
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§

Source

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§

Source§

impl DdcError for !

Source§

impl DdcError for ()

Implementors§

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).

Source§

impl<E> DdcError for CulvertError<E>
where E: DdcError,

Source§

impl<E> DdcError for UpdateError<E>
where E: DdcError,