pub trait Encodable {
    fn encode(&self, writer: impl Write) -> Result<()>;
}
Available on crate feature std only.
Expand description

A trait for encoding a message with std::io::Write

Required Methods§

Encode the given type

Implementors§