pub struct SbpCommand {
    pub address: u16,
    pub command: u8,
    pub valid: bool,
}

Fields§

§address: u16§command: u8§valid: bool

Implementations§

Trait Implementations§

Get the adress
Get the command
Create
True if command is a repeat
Formats the value using the given formatter. Read more
Notify the state machine of a new event Read more
Get the command Returns the data if State == Done, otherwise None
Reset the decoder
Get the time spans
I don’t care about the details, just give me a command (or an error)!

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.