pub struct ExtraHeadersLayer { /* private fields */ }
Expand description
Layer that adds a static set of extra headers to each request
Trait Implementations§
Source§impl Clone for ExtraHeadersLayer
impl Clone for ExtraHeadersLayer
Source§fn clone(&self) -> ExtraHeadersLayer
fn clone(&self) -> ExtraHeadersLayer
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<S> Layer<S> for ExtraHeadersLayer
impl<S> Layer<S> for ExtraHeadersLayer
Source§type Service = ExtraHeaders<S>
type Service = ExtraHeaders<S>
The wrapped service
Auto Trait Implementations§
impl Freeze for ExtraHeadersLayer
impl RefUnwindSafe for ExtraHeadersLayer
impl Send for ExtraHeadersLayer
impl Sync for ExtraHeadersLayer
impl Unpin for ExtraHeadersLayer
impl UnwindSafe for ExtraHeadersLayer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more