Struct infrared::Receiver

source ·
pub struct Receiver<Proto: DecoderFactory<Mono>, Pin = NoPin, Mono: InfraMonotonic = u32, Cmd: From<Proto::Cmd> = <Proto as Protocol>::Cmd> { /* private fields */ }
Expand description

Event based Receiver

Implementations§

Create a Receiver with pin as input

Create a Receiver with pin as input

Create a Receiver with pin as input

Get a reference to the Pin

Get a mut ref to the Pin

Drop the receiver and release the pin

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.