[][src]Enum i2c_linux::Message

pub enum Message<'a> {
    Read {
        address: u16,
        data: &'a mut [u8],
        flags: ReadFlags,
    },
    Write {
        address: u16,
        data: &'a [u8],
        flags: WriteFlags,
    },
}

Part of a combined I2C transaction.

Variants

I2C read command

Fields of Read

The slave address of the device to read from.

A data buffer to read into.

Additional flags can modify the operation to work around device quirks.

I2C write command

Fields of Write

The slave address of the device to write to.

The data to write.

Additional flags can modify the operation to work around device quirks.

Methods

impl<'a> Message<'a>
[src]

Byte length of the message data buffer.

Address of the message's slave.

Auto Trait Implementations

impl<'a> Send for Message<'a>

impl<'a> Sync for Message<'a>

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Important traits for &'a mut R

Immutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Important traits for &'a mut R

Mutably borrows from an owned value. Read more

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more