Struct linux_embedded_hal::I2cdev
source · pub struct I2cdev { /* private fields */ }Expand description
Newtype around i2cdev::linux::LinuxI2CDevice that implements the embedded-hal traits
Implementations
sourceimpl I2cdev
impl I2cdev
sourcepub fn new<P>(path: P) -> Result<Self, LinuxI2CError>where
P: AsRef<Path>,
pub fn new<P>(path: P) -> Result<Self, LinuxI2CError>where
P: AsRef<Path>,
See i2cdev::linux::LinuxI2CDevice::new for details.
Trait Implementations
sourceimpl Deref for I2cdev
impl Deref for I2cdev
type Target = LinuxI2CDevice
type Target = LinuxI2CDevice
The resulting type after dereferencing.
Auto Trait Implementations
impl RefUnwindSafe for I2cdev
impl Send for I2cdev
impl Sync for I2cdev
impl Unpin for I2cdev
impl UnwindSafe for I2cdev
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more