[][src]Struct keebrs::led::Leds

pub struct Leds<N, C, S, P, K> {
    pub num: N,
    pub caps: C,
    pub scroll: S,
    pub compose: P,
    pub kana: K,
}

Structure for LED outputs.

Fields

num: N

NumLock

caps: C

CapsLock

scroll: S

ScrollLock

compose: P

ComposeLock

kana: K

Kana

Implementations

impl Leds<Disabled, Disabled, Disabled, Disabled, Disabled>[src]

pub fn new() -> NoLeds[src]

Create a new empty Leds collection

impl<N, C, S, P, K> Leds<N, C, S, P, K>[src]

pub fn caps<T>(self, caps: T) -> Leds<N, T, S, P, K>[src]

Add a caps led

pub fn num<T>(self, num: T) -> Leds<T, C, S, P, K>[src]

Add a num led

pub fn scroll<T>(self, scroll: T) -> Leds<N, C, T, P, K>[src]

Add a scroll led

pub fn compose<T>(self, compose: T) -> Leds<N, C, S, T, K>[src]

Add a compose led

pub fn kana<T>(self, kana: T) -> Leds<N, C, S, P, T>[src]

Add a kana led

Trait Implementations

impl<N, C, S, P, K> LedReport for Leds<N, C, S, P, K> where
    C: Led,
    N: Led,
    S: Led,
    P: Led,
    K: Led
[src]

fn from_report_byte(&mut self, report: u8)[src]

Set the Led state from a report byte

Auto Trait Implementations

impl<N, C, S, P, K> Send for Leds<N, C, S, P, K> where
    C: Send,
    K: Send,
    N: Send,
    P: Send,
    S: Send

impl<N, C, S, P, K> Sync for Leds<N, C, S, P, K> where
    C: Sync,
    K: Sync,
    N: Sync,
    P: Sync,
    S: Sync

impl<N, C, S, P, K> Unpin for Leds<N, C, S, P, K> where
    C: Unpin,
    K: Unpin,
    N: Unpin,
    P: Unpin,
    S: Unpin

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> Same<T> for T

type Output = T

Should always be Self

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.