pub trait Encode<O> {
// Required method
fn encode(&self) -> Result<O, CodecError>;
}
Expand description
Encode an object into a wire (protobuf) type.
pub trait Encode<O> {
// Required method
fn encode(&self) -> Result<O, CodecError>;
}
Encode an object into a wire (protobuf) type.