pub trait WireEncode {
// Required method
fn encode_wire(&self, out: &mut Vec<u8>) -> Result<(), WireError>;
// Provided method
fn to_wire_bytes(&self) -> Result<Vec<u8>, WireError> { ... }
}Expand description
Encode a payload using the canonical wire primitives.
Custom payloads choose their own layout and, for persistence, a unique WireSchema.