[−][src]Struct infrared::EventReceiver
Event driven receiver
Fields
sm: PROTOCOL
Implementations
impl<PROTOCOL: ReceiverSM> EventReceiver<PROTOCOL>
[src]
Receiver - event based
pub fn new(samplerate: u32) -> Self
[src]
Create a new Receiver
pub fn edge_event<T: Into<u32>>(
&mut self,
edge: bool,
delta_samples: T
) -> Result<Option<PROTOCOL::Cmd>, Error>
[src]
&mut self,
edge: bool,
delta_samples: T
) -> Result<Option<PROTOCOL::Cmd>, Error>
Event happened
pub fn reset(&mut self)
[src]
Reset receiver
Auto Trait Implementations
impl<PROTOCOL> Send for EventReceiver<PROTOCOL> where
PROTOCOL: Send,
[src]
PROTOCOL: Send,
impl<PROTOCOL> Sync for EventReceiver<PROTOCOL> where
PROTOCOL: Sync,
[src]
PROTOCOL: Sync,
impl<PROTOCOL> Unpin for EventReceiver<PROTOCOL> where
PROTOCOL: Unpin,
[src]
PROTOCOL: 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>,