Struct proxy_header::ParseConfig
source · pub struct ParseConfig {
pub include_tlvs: bool,
pub allow_v1: bool,
pub allow_v2: bool,
}
Expand description
Configuration for parsing PROXY protocol headers
Fields§
§include_tlvs: bool
Whether to include TLV (type-length-value) fields in the parsed header
Even though the TLV section is parsed lazily when accessed, this can save an allocation.
allow_v1: bool
Whether to allow V1 headers
allow_v2: bool
Whether to allow V2 headers
Trait Implementations§
source§impl Clone for ParseConfig
impl Clone for ParseConfig
source§fn clone(&self) -> ParseConfig
fn clone(&self) -> ParseConfig
Returns a copy 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 ParseConfig
impl Debug for ParseConfig
source§impl Default for ParseConfig
impl Default for ParseConfig
impl Copy for ParseConfig
Auto Trait Implementations§
impl Freeze for ParseConfig
impl RefUnwindSafe for ParseConfig
impl Send for ParseConfig
impl Sync for ParseConfig
impl Unpin for ParseConfig
impl UnwindSafe for ParseConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)