pub trait HttpRequest {
// Required methods
fn get_header(&self, name: &str) -> Option<&[u8]>;
fn insert_extension<T: Clone + Send + Sync + 'static>(
&mut self,
ext: T,
) -> Option<T>;
}Required Methods§
fn get_header(&self, name: &str) -> Option<&[u8]>
fn insert_extension<T: Clone + Send + Sync + 'static>( &mut self, ext: T, ) -> Option<T>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".