Enum etherparse::LenSource
source · pub enum LenSource {
Slice,
Ipv4HeaderTotalLen,
Ipv6HeaderPayloadLen,
UdpHeaderLen,
TcpHeaderLen,
}
Expand description
Sources of length limiting values (e.g. “ipv6 payload length field”).
Variants§
Slice
Limiting length was the slice length (we don’t know what determined that one originally).
Ipv4HeaderTotalLen
Length
Ipv6HeaderPayloadLen
Error occurred in the IPv6 layer.
UdpHeaderLen
Error occurred while decoding an UDP header.
TcpHeaderLen
Error occurred while decoding a TCP header.
Trait Implementations§
source§impl Ord for LenSource
impl Ord for LenSource
source§impl PartialEq for LenSource
impl PartialEq for LenSource
source§impl PartialOrd for LenSource
impl PartialOrd for LenSource
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for LenSource
impl Eq for LenSource
impl StructuralPartialEq for LenSource
Auto Trait Implementations§
impl Freeze for LenSource
impl RefUnwindSafe for LenSource
impl Send for LenSource
impl Sync for LenSource
impl Unpin for LenSource
impl UnwindSafe for LenSource
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