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.
pub trait SendablePacket {
// Required methods
fn to_json(self) -> Result<String, JsonError>;
fn bytes(self) -> Result<Vec<u8>, JsonError>;
}Denotes structs that can be sent to the gateway.