[−][src]Struct rust_i2c::I2CStream
An implementation of i2c_hal::Stream
which uses the i2c_linux
crate
for communication with actual I2C hardware.
Methods
impl I2CStream
[src]
pub fn new(path: &str, slave: u16) -> Self
[src]
Creates new I2CStream instance
Arguments
path
- File system path to I2C device handle
slave
- Address of slave I2C device
Trait Implementations
Auto Trait Implementations
impl Unpin for I2CStream
impl Sync for I2CStream
impl Send for I2CStream
impl UnwindSafe for I2CStream
impl RefUnwindSafe for I2CStream
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,