[][src]Trait embedded_platform::i2c::I2cWrite

pub trait I2cWrite: Debug {
    type Error;
    type Write: Write + Unpin;
    fn poll_begin_write(
        self: Pin<&mut Self>,
        cx: &mut Context,
        addr: u8
    ) -> Poll<Result<Self::Write, Self::Error>>; }

A peripheral that can perform I²C write operations.

Associated Types

type Error

The common error type for I²C write operations.

A single error type for all operations is enforced for simplicity.

type Write: Write + Unpin

An object that can be used to complete the write operation.

Loading content...

Required methods

fn poll_begin_write(
    self: Pin<&mut Self>,
    cx: &mut Context,
    addr: u8
) -> Poll<Result<Self::Write, Self::Error>>

Polls the start of a write operation to completion.

Loading content...

Implementors

Loading content...