[][src]Struct toio::LightOp

pub struct LightOp {
    pub red: u8,
    pub green: u8,
    pub blue: u8,
    pub duration: Option<Duration>,
}

A light operation.

Fields

red: u8

The value of red light.

green: u8

The value of green light.

blue: u8

The value of blue light.

duration: Option<Duration>

Duration to turn on the light.

Implementations

impl LightOp[src]

pub fn new(red: u8, green: u8, blue: u8, duration: Option<Duration>) -> Self[src]

Constructs a new LightOp.

Trait Implementations

impl Clone for LightOp[src]

impl Debug for LightOp[src]

impl<'de> Deserialize<'de> for LightOp[src]

impl Serialize for LightOp[src]

Auto Trait Implementations

impl RefUnwindSafe for LightOp

impl Send for LightOp

impl Sync for LightOp

impl Unpin for LightOp

impl UnwindSafe for LightOp

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T, U> Into<U> for T where
    U: From<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.