[][src]Trait bgb_link::commands::BgbCommand

pub trait BgbCommand {
    fn serialize(&self) -> [u8; 8];
}

A common trait for anything that can be serialized into the BGB format.

Required methods

fn serialize(&self) -> [u8; 8]

Serializes the object into an 8-byte packet.

Loading content...

Implementors

impl BgbCommand for TypedBgbCommand[src]

impl BgbCommand for RawBgbCommand[src]

Loading content...