[][src]Enum blinkrs::Message

pub enum Message {
    Off,
    Fade(ColorDuration),
    Immediate(Color),
}

Represents a command processable by the specification outlined in the blink1 docs.

Variants

Off
Fade(ColorDuration)
Immediate(Color)

Methods

impl Message[src]

pub fn buffer(&self) -> [u8; 8][src]

Returns the buffer that will be written to the blink(1) usb device based on the specification outlined in the blink1 docs.

Trait Implementations

impl<'_> From<&'_ str> for Message[src]

impl Clone for Message[src]

impl Copy for Message[src]

impl Debug for Message[src]

Auto Trait Implementations

impl Send for Message

impl Sync for Message

impl Unpin for Message

impl UnwindSafe for Message

impl RefUnwindSafe for Message

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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