pub struct OptionalProxy;Expand description
Try to read a PP header from every connection, but treat it as optional
If the first bytes match a Proxy Protocol signature, the header is parsed.
If not, the connection is passed through as a direct connection.
Unlike MixedMode, this does not require a trusted proxy list:
it accepts PP from any peer
Trait Implementations§
Source§impl Clone for OptionalProxy
impl Clone for OptionalProxy
Source§fn clone(&self) -> OptionalProxy
fn clone(&self) -> OptionalProxy
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 ConnPolicy for OptionalProxy
impl ConnPolicy for OptionalProxy
fn evaluate(&self, _peer_addr: SocketAddr) -> PolicyDecision
Auto Trait Implementations§
impl Freeze for OptionalProxy
impl RefUnwindSafe for OptionalProxy
impl Send for OptionalProxy
impl Sync for OptionalProxy
impl Unpin for OptionalProxy
impl UnsafeUnpin for OptionalProxy
impl UnwindSafe for OptionalProxy
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