Trait CommandData
loco_protocol::command
pub trait CommandData: Sized { pub fn method(&self) -> &'static str; pub fn encode(&self) -> Result<Vec<u8>, Error>; pub fn decode(data: &Vec<u8>) -> Result<Self, Error>; }
pub fn method(&self) -> &'static str
pub fn encode(&self) -> Result<Vec<u8>, Error>
pub fn decode(data: &Vec<u8>) -> Result<Self, Error>