pub struct XForwardee(/* private fields */);Expand description
An interface used in a X-Forwarded-For header.
Implementations§
Source§impl XForwardee
impl XForwardee
Sourcepub fn header_value(&self) -> HeaderValue
pub fn header_value(&self) -> HeaderValue
The X-Forwarded-For header value for the XForwardee.
Trait Implementations§
Source§impl Clone for XForwardee
impl Clone for XForwardee
Source§fn clone(&self) -> XForwardee
fn clone(&self) -> XForwardee
Returns a duplicate 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 XForwardee
impl Debug for XForwardee
Source§impl Hash for XForwardee
impl Hash for XForwardee
Source§impl PartialEq for XForwardee
impl PartialEq for XForwardee
impl Copy for XForwardee
impl Eq for XForwardee
impl StructuralPartialEq for XForwardee
Auto Trait Implementations§
impl Freeze for XForwardee
impl RefUnwindSafe for XForwardee
impl Send for XForwardee
impl Sync for XForwardee
impl Unpin for XForwardee
impl UnwindSafe for XForwardee
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<R> FirstAddrExt for R
impl<R> FirstAddrExt for R
Source§fn first_addr(self) -> FirstAddrResolver<Self>where
Self: Sized,
fn first_addr(self) -> FirstAddrResolver<Self>where
Self: Sized,
Convert this resolver into a
FirstAddrResolver. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<S> ServiceBailExt for S
impl<S> ServiceBailExt for S
Source§fn bail<F>(self, preprocessor: F) -> BailService<S, F>
fn bail<F>(self, preprocessor: F) -> BailService<S, F>
Provide a pre-processor which returns either
Ok(req)
with a moditied request, or Err(res) with the desired
immediate response. This pre-processor is synchronous.