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§impl Debug for TrustedProxies
impl Debug for TrustedProxies
Source§impl Default for TrustedProxies
impl Default 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