Enum i2cdev::linux::LinuxI2CError
source · pub enum LinuxI2CError {
Errno(i32),
Io(Error),
}
Expand description
Linux I2C errors
Variants§
Errno(i32)
Errno from a failing libc
call. Sourced from nix
.
To interpret this value nix::errno::from_i32
should be used.
The Error
implementation will not return a source
for this variant, like the Error
implementation of the underlying nix
error.
Io(Error)
Input/output error
Trait Implementations§
source§impl Debug for LinuxI2CError
impl Debug for LinuxI2CError
source§impl Display for LinuxI2CError
impl Display for LinuxI2CError
source§impl Error for LinuxI2CError
impl Error for LinuxI2CError
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl From<Errno> for LinuxI2CError
impl From<Errno> for LinuxI2CError
source§impl From<Error> for LinuxI2CError
impl From<Error> for LinuxI2CError
source§impl From<LinuxI2CError> for Error
impl From<LinuxI2CError> for Error
source§fn from(e: LinuxI2CError) -> Error
fn from(e: LinuxI2CError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for LinuxI2CError
impl Send for LinuxI2CError
impl Sync for LinuxI2CError
impl Unpin for LinuxI2CError
impl !UnwindSafe for LinuxI2CError
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