Trait jetstream::protocol::wire_format::WireFormat
source · pub trait WireFormat: Sized + Send {
// Required methods
fn byte_size(&self) -> u32;
fn encode<W: Write>(&self, writer: &mut W) -> Result<()>;
fn decode<R: Read>(reader: &mut R) -> Result<Self>;
}Expand description
A type that can be encoded on the wire using the 9P protocol.
Required Methods§
Object Safety§
This trait is not object safe.