pub enum ErrorHandling {
None,
Panic,
Custom(Box<dyn FnMut(LinuxI2CError) + 'static>),
}Expand description
What to do on I/O errors.
Variants§
None
Ignore write errors.
Panic
Panic on write errors.
Custom(Box<dyn FnMut(LinuxI2CError) + 'static>)
Run a custom handler function.
Auto Trait Implementations§
impl Freeze for ErrorHandling
impl !RefUnwindSafe for ErrorHandling
impl !Send for ErrorHandling
impl !Sync for ErrorHandling
impl Unpin for ErrorHandling
impl !UnwindSafe for ErrorHandling
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