Struct etherparse::UdpHeaderSlice [−][src]
pub struct UdpHeaderSlice<'a> { /* fields omitted */ }
Expand description
A slice containing an udp header of a network package. Struct allows the selective read of fields in the header.
Implementations
Creates a slice containing an udp header.
Returns the slice containing the udp header
Reads the “udp source port” from the slice.
Reads the “udp destination port” from the slice.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'a> RefUnwindSafe for UdpHeaderSlice<'a>
impl<'a> Send for UdpHeaderSlice<'a>
impl<'a> Sync for UdpHeaderSlice<'a>
impl<'a> Unpin for UdpHeaderSlice<'a>
impl<'a> UnwindSafe for UdpHeaderSlice<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more