[][src]Enum embedded_hal::blocking::i2c::Operation

pub enum Operation<'a> {
    Read(&'a mut [u8]),
    Write(&'a [u8]),
}

Transactional I2C operation.

Several operations can be combined as part of a transaction.

Variants

Read(&'a mut [u8])

Read data into the provided buffer

Write(&'a [u8])

Write data from the provided buffer

Trait Implementations

impl<'a> Debug for Operation<'a>[src]

impl<'a> PartialEq<Operation<'a>> for Operation<'a>[src]

impl<'a> StructuralPartialEq for Operation<'a>[src]

Auto Trait Implementations

impl<'a> Send for Operation<'a>

impl<'a> Sync for Operation<'a>

impl<'a> Unpin for Operation<'a>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.