[−][src]Struct infrared::protocols::Nec
Generic type for Nec Receiver
Fields
bitbuf: u32
Implementations
impl<VARIANT: NecVariant> Nec<VARIANT>
[src]
Nec decoder statemachine
Trait Implementations
impl<N: NecVariant> Default for Nec<N>
[src]
impl<N: NecVariant> ReceiverSM for Nec<N>
[src]
type Cmd = NecCommand<N>
The Resulting Command Type
type InternalState = InternalState
Internal State
pub fn create() -> Self
[src]
pub fn event(&mut self, rising: bool, dt: u32) -> Self::InternalState
[src]
pub fn command(&self) -> Option<Self::Cmd>
[src]
pub fn reset(&mut self)
[src]
Auto Trait Implementations
impl<N> Send for Nec<N> where
N: Send,
[src]
N: Send,
impl<N> Sync for Nec<N> where
N: Sync,
[src]
N: Sync,
impl<N> Unpin for Nec<N> where
N: Unpin,
[src]
N: 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, 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>,