pub enum HeaderPolicy {
Required,
Optional,
}Expand description
Controls whether incoming streams must start with a PROXY protocol header.
Variants§
Required
Reject streams that do not start with a PROXY protocol header.
Optional
Accept streams without a PROXY protocol header and replay any bytes read during detection.
Trait Implementations§
Source§impl Clone for HeaderPolicy
impl Clone for HeaderPolicy
Source§fn clone(&self) -> HeaderPolicy
fn clone(&self) -> HeaderPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HeaderPolicy
Source§impl Debug for HeaderPolicy
impl Debug for HeaderPolicy
Source§impl Default for HeaderPolicy
impl Default for HeaderPolicy
Source§fn default() -> HeaderPolicy
fn default() -> HeaderPolicy
Returns the “default value” for a type. Read more
impl Eq for HeaderPolicy
Source§impl PartialEq for HeaderPolicy
impl PartialEq for HeaderPolicy
Source§fn eq(&self, other: &HeaderPolicy) -> bool
fn eq(&self, other: &HeaderPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HeaderPolicy
Auto Trait Implementations§
impl Freeze for HeaderPolicy
impl RefUnwindSafe for HeaderPolicy
impl Send for HeaderPolicy
impl Sync for HeaderPolicy
impl Unpin for HeaderPolicy
impl UnsafeUnpin for HeaderPolicy
impl UnwindSafe for HeaderPolicy
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