Trait p9::protocol::wire_format::WireFormat
source · 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.