pub enum ProxyVersions {
V1,
V2,
Both,
}Expand description
Which PROXY protocol versions a listener accepts.
assert_ne!(net_io::ProxyVersions::V1, net_io::ProxyVersions::V2);Variants§
Trait Implementations§
Source§impl Clone for ProxyVersions
impl Clone for ProxyVersions
impl Copy for ProxyVersions
Source§impl Debug for ProxyVersions
impl Debug for ProxyVersions
impl Eq for ProxyVersions
Source§impl PartialEq for ProxyVersions
impl PartialEq for ProxyVersions
impl StructuralPartialEq for ProxyVersions
Auto Trait Implementations§
impl Freeze for ProxyVersions
impl RefUnwindSafe for ProxyVersions
impl Send for ProxyVersions
impl Sync for ProxyVersions
impl Unpin for ProxyVersions
impl UnsafeUnpin for ProxyVersions
impl UnwindSafe for ProxyVersions
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