pub enum GpioError {
AddressOutOfRange,
BufferTooSmall,
}Expand description
What can go wrong forming an I2C address frame.
Variants§
AddressOutOfRange
An address is outside its range: a 7-bit address above 0x7F, or a 10-bit address
above 0x3FF.
BufferTooSmall
The caller’s output buffer is too small to hold the address frame. A 7-bit address
needs one byte and a 10-bit address two;
Address::frame_len gives the exact count.
Trait Implementations§
impl Copy for GpioError
impl Eq for GpioError
Source§impl Error for GpioError
impl Error for GpioError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for GpioError
Auto Trait Implementations§
impl Freeze for GpioError
impl RefUnwindSafe for GpioError
impl Send for GpioError
impl Sync for GpioError
impl Unpin for GpioError
impl UnsafeUnpin for GpioError
impl UnwindSafe for GpioError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more