Trait SendablePacket

Source
pub trait SendablePacket {
    // Required methods
    fn to_json(self) -> Result<String, JsonError>;
    fn bytes(self) -> Result<Vec<u8>, JsonError>;
}
Expand description

Denotes structs that can be sent to the gateway.

Required Methods§

Implementors§