pub struct TrustedProxies { /* private fields */ }Expand description
Resolves forwarding headers only when the direct peer is explicitly trusted.
Implementations§
Source§impl TrustedProxies
impl TrustedProxies
pub fn new(proxies: impl IntoIterator<Item = IpAddr>) -> Self
Trait Implementations§
Source§impl Clone for TrustedProxies
impl Clone for TrustedProxies
Source§fn clone(&self) -> TrustedProxies
fn clone(&self) -> TrustedProxies
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TrustedProxies
impl Debug for TrustedProxies
Source§impl Default for TrustedProxies
impl Default for TrustedProxies
Source§fn default() -> TrustedProxies
fn default() -> TrustedProxies
Returns the “default value” for a type. Read more
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