pub trait HeaderWriter: Sized {
// Required method
fn write_header(&self, writer: &mut impl Writer);
// Provided method
fn to_header(&self) -> String { ... }
}Expand description
A header that can be written to a message.
Required Methods§
Sourcefn write_header(&self, writer: &mut impl Writer)
fn write_header(&self, writer: &mut impl Writer)
Writes the complete header field, including the field name and the
trailing CRLF, to writer.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".