Struct smoltcp::wire::UdpRepr [] [src]

pub struct UdpRepr<'a> {
    pub src_port: u16,
    pub dst_port: u16,
    pub payload: &'a [u8],
}

A high-level representation of an User Datagram Protocol packet.

Fields

Methods

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

[src]

Parse an User Datagram Protocol packet and return a high-level representation.

[src]

Return the length of a packet that will be emitted from this high-level representation.

[src]

Emit a high-level representation into an User Datagram Protocol packet.

Trait Implementations

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

[src]

Formats the value using the given formatter.

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

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

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

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Copy for Repr<'a>
[src]

impl<'a> Display for Repr<'a>
[src]

[src]

Formats the value using the given formatter. Read more