pub struct TrustedProxyContext { /* private fields */ }Expand description
Per-request trust signal for forwarded-header handling.
FIND-R56-HTTP-002: from_trusted_proxy is pub(crate) to prevent external
code from constructing a TrustedProxyContext { from_trusted_proxy: true }
and injecting it as a spoofed trust signal. Use is_from_trusted_proxy()
for read access from outside the crate.
Implementations§
Trait Implementations§
Source§impl Clone for TrustedProxyContext
impl Clone for TrustedProxyContext
Source§fn clone(&self) -> TrustedProxyContext
fn clone(&self) -> TrustedProxyContext
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 TrustedProxyContext
impl Debug for TrustedProxyContext
impl Copy for TrustedProxyContext
Auto Trait Implementations§
impl Freeze for TrustedProxyContext
impl RefUnwindSafe for TrustedProxyContext
impl Send for TrustedProxyContext
impl Sync for TrustedProxyContext
impl Unpin for TrustedProxyContext
impl UnsafeUnpin for TrustedProxyContext
impl UnwindSafe for TrustedProxyContext
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