pub trait BinaryEncode<P = ()> {
// Required method
fn encode(self, encoder: &mut EncodedData);
}Expand description
Trait for encoding Rust values into the binary protocol. Each type specifies how to serialize itself.
pub trait BinaryEncode<P = ()> {
// Required method
fn encode(self, encoder: &mut EncodedData);
}Trait for encoding Rust values into the binary protocol. Each type specifies how to serialize itself.