Skip to main content

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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>