pub struct WithHeader {
name: HeaderName,
value: HeaderValue,
}
Expand description
Wrap a Filter
to always set a header.
Fields§
§name: HeaderName
§value: HeaderValue
Trait Implementations§
source§impl Clone for WithHeader
impl Clone for WithHeader
source§fn clone(&self) -> WithHeader
fn clone(&self) -> WithHeader
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 Debug for WithHeader
impl Debug for WithHeader
Auto Trait Implementations§
impl !Freeze for WithHeader
impl RefUnwindSafe for WithHeader
impl Send for WithHeader
impl Sync for WithHeader
impl Unpin for WithHeader
impl UnwindSafe for WithHeader
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)