[][src]Enum linux_embedded_hal::SpiOperation

pub enum SpiOperation<'a, W> where
    W: 'static, 
{ Write(&'a [W]), Transfer(&'a mut [W]), }

Operation for transactional SPI trait

This allows composition of SPI operations into a single bus transaction

Variants

Write(&'a [W])

Write data from the provided buffer, discarding read data

Transfer(&'a mut [W])

Write data out while reading data into the provided buffer

Trait Implementations

impl<'a, W> Debug for Operation<'a, W> where
    W: 'static + Debug
[src]

impl<'a, W> PartialEq<Operation<'a, W>> for Operation<'a, W> where
    W: 'static + PartialEq<W>, 
[src]

impl<'a, W> StructuralPartialEq for Operation<'a, W> where
    W: 'static, 
[src]

Auto Trait Implementations

impl<'a, W> RefUnwindSafe for Operation<'a, W> where
    W: RefUnwindSafe

impl<'a, W> Send for Operation<'a, W> where
    W: Send + Sync

impl<'a, W> Sync for Operation<'a, W> where
    W: Sync

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

impl<'a, W> !UnwindSafe for Operation<'a, W>

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.