[][src]Struct infrared::bufrecv::BufferReceiver

pub struct BufferReceiver<PROTOCOL> { /* fields omitted */ }

Implementations

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

pub fn with_values(values: &[u16], samplerate: u32) -> Self[src]

Create a new BufferReceiver with initial value change buffer

pub fn add_cmd(&mut self, cmd: &impl Command)[src]

Add command to buffer Panics if not enough room in Buffer

pub fn add(&mut self, values: &[u16])[src]

Add values Panics if not enough room in Buffer

pub fn iter(&self) -> BufferIterator<'_, PROTOCOL>

Notable traits for BufferIterator<'a, PROTOCOL>

impl<'a, PROTOCOL: ReceiverSM> Iterator for BufferIterator<'a, PROTOCOL> type Item = PROTOCOL::Cmd;
[src]

Trait Implementations

impl<'a, PROTOCOL: ReceiverSM> IntoIterator for &'a BufferReceiver<PROTOCOL>[src]

type Item = PROTOCOL::Cmd

The type of the elements being iterated over.

type IntoIter = BufferIterator<'a, PROTOCOL>

Which kind of iterator are we turning this into?

Auto Trait Implementations

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

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

impl<PROTOCOL> Unpin for BufferReceiver<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.