pub trait Error: Debug { // Required method fn kind(&self) -> ErrorKind; }
I2C error.
Convert error to a generic I2C error kind.
By using this method, I2C errors freely defined by HAL implementations can be converted to a set of generic I2C errors upon which generic code can act.