[−][src]Struct keebrs::led::Leds
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]
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]
C: Led,
N: Led,
S: Led,
P: Led,
K: Led,
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,
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,
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,
C: Unpin,
K: Unpin,
N: Unpin,
P: Unpin,
S: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,