pub trait WireFormat: Sized {
    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§

Returns the number of bytes necessary to fully encode self.

Encodes self into writer.

Decodes Self from reader.

Implementations on Foreign Types§

Implementors§