Error

Trait Error 

Source
pub trait Error: Debug {
    // Required method
    fn kind(&self) -> ErrorKind;
}
Expand description

Trait that RTC driver error types should implement.

Allows converting driver-specific errors into standard categories. Drivers can either define custom error types or use ErrorKind directly.

Required Methods§

Source

fn kind(&self) -> ErrorKind

Map a driver-specific error into a general category

Implementors§

Source§

impl Error for ErrorKind

Allows ErrorKind to be used directly as an error type.

Simple drivers can use type Error = ErrorKind instead of defining custom errors.