[−][src]Struct infrared::hal::PeriodicReceiver2
Receiver for two protocols
Implementations
impl<PIN, PINERR, RECV1, CMD1, RECV2, CMD2> PeriodicReceiver2<RECV1, RECV2, PIN> where
PIN: InputPin<Error = PINERR>,
RECV1: ReceiverSM<Cmd = CMD1>,
RECV2: ReceiverSM<Cmd = CMD2>,
CMD1: Command,
CMD2: Command,
[src]
PIN: InputPin<Error = PINERR>,
RECV1: ReceiverSM<Cmd = CMD1>,
RECV2: ReceiverSM<Cmd = CMD2>,
CMD1: Command,
CMD2: Command,
pub fn new(pin: PIN, samplerate: u32) -> Self
[src]
pub fn destroy(self) -> PIN
[src]
pub fn poll(&mut self) -> Result<(Option<CMD1>, Option<CMD2>), PINERR>
[src]
Auto Trait Implementations
impl<RECV1, RECV2, PIN> Send for PeriodicReceiver2<RECV1, RECV2, PIN> where
PIN: Send,
RECV1: Send,
RECV2: Send,
[src]
PIN: Send,
RECV1: Send,
RECV2: Send,
impl<RECV1, RECV2, PIN> Sync for PeriodicReceiver2<RECV1, RECV2, PIN> where
PIN: Sync,
RECV1: Sync,
RECV2: Sync,
[src]
PIN: Sync,
RECV1: Sync,
RECV2: Sync,
impl<RECV1, RECV2, PIN> Unpin for PeriodicReceiver2<RECV1, RECV2, PIN> where
PIN: Unpin,
RECV1: Unpin,
RECV2: Unpin,
[src]
PIN: Unpin,
RECV1: Unpin,
RECV2: 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>,