[][src]Trait embedded_platform::i2c::I2cRead

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

A peripheral that can perform I²C read operations.

Associated Types

type Error

The common error type for I²C read operations.

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

type Read: Read + Unpin

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

Loading content...

Required methods

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

Polls the start of a read operation to completion.

Loading content...

Implementors

Loading content...