RequestExt

Trait RequestExt 

Source
pub trait RequestExt {
    // Required methods
    fn insert<T: Clone + Send + Sync + 'static>(&mut self, val: T);
    fn get<T: Send + Sync + 'static>(&self) -> Option<&T>;
    fn take<T: Send + Sync + 'static>(self) -> (Self, Option<T>)
       where Self: Sized;
}

Required Methods§

Source

fn insert<T: Clone + Send + Sync + 'static>(&mut self, val: T)

Source

fn get<T: Send + Sync + 'static>(&self) -> Option<&T>

Source

fn take<T: Send + Sync + 'static>(self) -> (Self, Option<T>)
where Self: Sized,

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.

Implementations on Foreign Types§

Source§

impl RequestExt for Request<&str>

Source§

fn insert<T: Clone + Send + Sync + 'static>(&mut self, val: T)

Source§

fn get<T: Send + Sync + 'static>(&self) -> Option<&T>

Source§

fn take<T: Send + Sync + 'static>(self) -> (Self, Option<T>)

Implementors§