pub enum TrustedProxies {
All,
Ranges(Vec<IpRangeEntry>),
}Expand description
Peers whose X-Forwarded-* / Forwarded headers rws believes
(trusted_proxies, 18.24.0). The default is loopback and the private
ranges load balancers usually sit in; * trusts everyone (the behaviour
before 18.24), none no one.
Variants§
All
Ranges(Vec<IpRangeEntry>)
Implementations§
Trait Implementations§
Source§impl Clone for TrustedProxies
impl Clone for TrustedProxies
Source§impl Debug for TrustedProxies
impl Debug for TrustedProxies
Source§impl PartialEq for TrustedProxies
impl PartialEq for TrustedProxies
impl StructuralPartialEq for TrustedProxies
Auto Trait Implementations§
impl Freeze for TrustedProxies
impl RefUnwindSafe for TrustedProxies
impl Send for TrustedProxies
impl Sync for TrustedProxies
impl Unpin for TrustedProxies
impl UnsafeUnpin for TrustedProxies
impl UnwindSafe for TrustedProxies
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