pub trait HeaderOp {
// Required methods
fn header(&self, name: impl Into<HeaderName>) -> Option<&HeaderValues>;
fn insert_header(
&mut self,
name: impl Into<HeaderName>,
values: impl ToHeaderValues,
) -> Option<HeaderValues>;
}
Required Methods§
fn header(&self, name: impl Into<HeaderName>) -> Option<&HeaderValues>
fn insert_header( &mut self, name: impl Into<HeaderName>, values: impl ToHeaderValues, ) -> Option<HeaderValues>
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.