Trait I2cWriteExt

Source
pub trait I2cWriteExt: I2cWrite {
    // Provided method
    fn begin_write(&mut self, address: u8) -> BeginWrite<'_, Self> 
       where Self: Unpin { ... }
}
Expand description

Extension functions for instances of I2cWrite.

Provided Methods§

Source

fn begin_write(&mut self, address: u8) -> BeginWrite<'_, Self>
where Self: Unpin,

Initiates a write operation on the specified address.

The returned object can be used to write the actual data to the address. The user must call shutdown when done writing, or else it might leave this I²C peripheral in an incomplete state. For example, the I²C peripheral might decide to flush remaining data in the Drop implementation, which will be blocking.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<A> I2cWriteExt for A
where A: I2cWrite,