pub trait Encode: Sized {
const MAX_LEN: usize = usize::MAX;
// Required method
fn encode<W>(self, out: &mut W) -> Result<(), Error>
where W: Sink<Error = Error>;
}Expand description
Consumes one body into the admitted output without repeating its size check.
Provided Associated Constants§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".