[][src]Struct infrared::PeriodicReceiver

pub struct PeriodicReceiver<PROTOCOL> {
    pub recv: EventReceiver<PROTOCOL>,
    // some fields omitted
}

Receiver to use with periodic polling

Fields

recv: EventReceiver<PROTOCOL>

Implementations

impl<PROTOCOL: ReceiverSM> PeriodicReceiver<PROTOCOL>[src]

pub fn new(samplerate: u32) -> Self[src]

pub fn poll(
    &mut self,
    edge: bool,
    ts: u32
) -> Result<Option<PROTOCOL::Cmd>, Error>
[src]

pub fn reset(&mut self)[src]

Auto Trait Implementations

impl<PROTOCOL> Send for PeriodicReceiver<PROTOCOL> where
    PROTOCOL: Send
[src]

impl<PROTOCOL> Sync for PeriodicReceiver<PROTOCOL> where
    PROTOCOL: Sync
[src]

impl<PROTOCOL> Unpin for PeriodicReceiver<PROTOCOL> where
    PROTOCOL: Unpin
[src]

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, 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.