Struct infrared::PeriodicPoll
source · [−]pub struct PeriodicPoll<Proto: DecoderFactory<u32>, Input = NoPin, Cmd: From<<Proto as Protocol>::Cmd> = <Proto as Protocol>::Cmd> { /* private fields */ }
Expand description
Period poll Receiver
Implementations
sourceimpl<Proto, Input, Cmd> PeriodicPoll<Proto, Input, Cmd> where
Proto: DecoderFactory<u32>,
Cmd: From<<Proto as Protocol>::Cmd>,
impl<Proto, Input, Cmd> PeriodicPoll<Proto, Input, Cmd> where
Proto: DecoderFactory<u32>,
Cmd: From<<Proto as Protocol>::Cmd>,
pub fn with_input(freq: u32, input: Input) -> Self
pub fn poll_base(&mut self, edge: bool) -> Result<Option<Cmd>, DecodingError>
sourceimpl<Proto, Cmd> PeriodicPoll<Proto, NoPin, Cmd> where
Proto: DecoderFactory<u32>,
Cmd: From<<Proto as Protocol>::Cmd>,
impl<Proto, Cmd> PeriodicPoll<Proto, NoPin, Cmd> where
Proto: DecoderFactory<u32>,
Cmd: From<<Proto as Protocol>::Cmd>,
Auto Trait Implementations
impl<Proto, Input, Cmd> RefUnwindSafe for PeriodicPoll<Proto, Input, Cmd> where
Cmd: RefUnwindSafe,
Input: RefUnwindSafe,
<Proto as DecoderFactory<u32>>::Decoder: RefUnwindSafe,
impl<Proto, Input, Cmd> Send for PeriodicPoll<Proto, Input, Cmd> where
Cmd: Send,
Input: Send,
<Proto as DecoderFactory<u32>>::Decoder: Send,
impl<Proto, Input, Cmd> Sync for PeriodicPoll<Proto, Input, Cmd> where
Cmd: Sync,
Input: Sync,
<Proto as DecoderFactory<u32>>::Decoder: Sync,
impl<Proto, Input, Cmd> Unpin for PeriodicPoll<Proto, Input, Cmd> where
Cmd: Unpin,
Input: Unpin,
<Proto as DecoderFactory<u32>>::Decoder: Unpin,
impl<Proto, Input, Cmd> UnwindSafe for PeriodicPoll<Proto, Input, Cmd> where
Cmd: UnwindSafe,
Input: UnwindSafe,
<Proto as DecoderFactory<u32>>::Decoder: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more