pub struct PPV2ParserCopying();Expand description
Used with ProxyV2Parser its PAR generic.
A parser which copies data from external buffer to PP2Tlvs
and setting the 'static lifetime to this enum.
Trait Implementations§
Source§impl Debug for PPV2ParserCopying
impl Debug for PPV2ParserCopying
Source§impl Display for PPV2ParserCopying
impl Display for PPV2ParserCopying
Source§impl PP2TlvRestore<'static> for PPV2ParserCopying
impl PP2TlvRestore<'static> for PPV2ParserCopying
type TlvTblRes = PP2Tlvs<'static>
Source§fn contains_subtype(item: &Self::TlvTblRes) -> bool
fn contains_subtype(item: &Self::TlvTblRes) -> bool
Should return
true if the current instance contains subtypes.Source§fn is_in_range(tlv_type: u8, tlv_parent_type: Option<u8>) -> bool
fn is_in_range(tlv_type: u8, tlv_parent_type: Option<u8>) -> bool
Checks if the current TLV is in range of the
tlv_parent_type parent. If
tlv_parent_type is None then the tlv_type can be checked against the
main range. The tlv_parent_type is set when the current tlv_type is a
subset of the parent. Read moreSource§fn restore(
tlv_type: u8,
cur: &mut Cursor<&'static [u8]>,
) -> HaProxRes<Self::TlvTblRes>
fn restore( tlv_type: u8, cur: &mut Cursor<&'static [u8]>, ) -> HaProxRes<Self::TlvTblRes>
A function which is called when the parsing reaches the TLV’s payload. The cursor
is poiniting to the beginning of the payload and the inner buffer is a slice
from the main buffer of size of the TLV’s payload. Read more
Auto Trait Implementations§
impl Freeze for PPV2ParserCopying
impl RefUnwindSafe for PPV2ParserCopying
impl Send for PPV2ParserCopying
impl Sync for PPV2ParserCopying
impl Unpin for PPV2ParserCopying
impl UnwindSafe for PPV2ParserCopying
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