pub trait EncodableInHeader:
Send
+ Sync
+ Any
+ Debug {
// Required methods
fn encode(
&self,
encoder: &mut EncodingWriter<'_>,
) -> Result<(), EncodingError>;
fn boxed_clone(&self) -> Box<dyn EncodableInHeader>;
}
Expand description
Trait Implemented by “components” used in header field bodies
This trait can be turned into a trait object allowing runtime genericallity over the “components” if needed.