Struct etherparse::UdpHeaderSlice[][src]

pub struct UdpHeaderSlice<'a> { /* fields omitted */ }

A slice containing an udp header of a network package. Struct allows the selective read of fields in the header.

Methods

impl<'a> UdpHeaderSlice<'a>
[src]

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 source port" from the slice.

Reads the "udp source port" from the slice.

Reads the "udp source port" from the slice.

Decode all the fields and copy the results to a UdpHeader struct

Trait Implementations

impl<'a> Clone for UdpHeaderSlice<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Debug for UdpHeaderSlice<'a>
[src]

Formats the value using the given formatter. Read more

impl<'a> Eq for UdpHeaderSlice<'a>
[src]

impl<'a> PartialEq for UdpHeaderSlice<'a>
[src]

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> Send for UdpHeaderSlice<'a>

impl<'a> Sync for UdpHeaderSlice<'a>