Inject

Trait Inject 

Source
pub trait Inject {
    // Required method
    fn inject(&self, req: &mut Request<SgBody>) -> BoxResult<()>;
}

Required Methods§

Source

fn inject(&self, req: &mut Request<SgBody>) -> BoxResult<()>

Inject the request with some data.

§Errors

If the injection fails.

Implementors§

Source§

impl<A> Inject for Authorization<A>
where for<'a> &'a A: TryInto<HeaderValue> + Send + Sync, for<'a> <&'a A as TryInto<HeaderValue>>::Error: Into<BoxError>,

Source§

impl<E: Clone + Send + Sync + 'static> Inject for Extension<E>