pub struct NecDecoder<Mono: InfraMonotonic, C = NecCommand> { /* private fields */ }
Trait Implementations§
Source§impl<Mono, Cmd> ProtocolDecoder<Mono, Cmd> for NecDecoder<Mono, Cmd>where
Mono: InfraMonotonic,
Cmd: NecCommandVariant,
impl<Mono, Cmd> ProtocolDecoder<Mono, Cmd> for NecDecoder<Mono, Cmd>where
Mono: InfraMonotonic,
Cmd: NecCommandVariant,
Source§fn event(&mut self, rising: bool, dur: Mono::Duration) -> State
fn event(&mut self, rising: bool, dur: Mono::Duration) -> State
Notify the state machine of a new event Read more
Source§fn command(&self) -> Option<Cmd>
fn command(&self) -> Option<Cmd>
Get the command
Returns the data if State == Done, otherwise None
Source§fn spans(&self) -> &PulseSpans<Mono>
fn spans(&self) -> &PulseSpans<Mono>
Get the time spans
Source§fn event_total(
&mut self,
edge: bool,
dt: Mono::Duration,
) -> Result<Option<Cmd>, DecodingError>
fn event_total( &mut self, edge: bool, dt: Mono::Duration, ) -> Result<Option<Cmd>, DecodingError>
I don’t care about the details, just give me a command (or an error)!
Auto Trait Implementations§
impl<Mono, C> Freeze for NecDecoder<Mono, C>
impl<Mono, C> RefUnwindSafe for NecDecoder<Mono, C>
impl<Mono, C> Send for NecDecoder<Mono, C>
impl<Mono, C> Sync for NecDecoder<Mono, C>
impl<Mono, C> Unpin for NecDecoder<Mono, C>
impl<Mono, C> UnwindSafe for NecDecoder<Mono, C>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more