pub trait Encodable<D: DataFormat> {
// Required method
fn encode_to(&self, d: &D, w: &mut impl Write) -> Result<usize>;
}
Expand description
An entity which can be written in a channel using the specified data format
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.