pub struct SbpCommand {
pub address: u16,
pub command: u8,
pub valid: bool,
}
Fields§
§address: u16
§command: u8
§valid: bool
Implementations§
Trait Implementations§
Source§impl AddressCommand for SbpCommand
impl AddressCommand for SbpCommand
Source§impl Debug for SbpCommand
impl Debug for SbpCommand
Source§impl<Mono: InfraMonotonic> ProtocolDecoder<Mono, SbpCommand> for SbpDecoder<Mono>
impl<Mono: InfraMonotonic> ProtocolDecoder<Mono, SbpCommand> for SbpDecoder<Mono>
Source§fn event(&mut self, rising: bool, dt: Mono::Duration) -> State
fn event(&mut self, rising: bool, dt: Mono::Duration) -> State
Notify the state machine of a new event Read more
Source§fn command(&self) -> Option<SbpCommand>
fn command(&self) -> Option<SbpCommand>
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 Freeze for SbpCommand
impl RefUnwindSafe for SbpCommand
impl Send for SbpCommand
impl Sync for SbpCommand
impl Unpin for SbpCommand
impl UnwindSafe for SbpCommand
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