pub enum ProxyMode {
None,
Accept,
Require,
}
Expand description
Accept/Reject mode for accepting connections
Variants§
None
Disable PROXYv2 (if sent, PROXYv2 data will be passed through)
Accept
PROXYv2 data is parsed if present, otherwise the original address is used
Require
PROXYv2 data is required or the connection will be rejected
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProxyMode
impl RefUnwindSafe for ProxyMode
impl Send for ProxyMode
impl Sync for ProxyMode
impl Unpin for ProxyMode
impl UnwindSafe for ProxyMode
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