[][src]Enum ssd1675::command::BufCommand

pub enum BufCommand<'buf> {
    WriteBlackData(&'buf [u8]),
    WriteRedData(&'buf [u8]),
    WriteLUT(&'buf [u8]),
}

Enumerates commands that can be sent to the controller that accept a slice argument buffer. This is separated from Command so that the lifetime parameter of the argument buffer slice does not pervade code which never invokes these two commands.

Variants

WriteBlackData(&'buf [u8])

Write to black/white RAM 1 = White 0 = Black

WriteRedData(&'buf [u8])

Write to red RAM 1 = Red 0 = Use contents of black/white RAM

WriteLUT(&'buf [u8])

Write LUT register (70 bytes)

Implementations

impl<'buf> BufCommand<'buf>[src]

pub fn execute<I: DisplayInterface>(
    &self,
    interface: &mut I
) -> Result<(), I::Error>
[src]

Execute the command, transmitting the associated buffer as well.

Auto Trait Implementations

impl<'buf> Send for BufCommand<'buf>

impl<'buf> Sync for BufCommand<'buf>

impl<'buf> Unpin for BufCommand<'buf>

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.