Struct smoltcp::wire::TcpRepr [] [src]

pub struct TcpRepr<'a> {
    pub src_port: u16,
    pub dst_port: u16,
    pub control: Control,
    pub seq_number: SeqNumber,
    pub ack_number: Option<SeqNumber>,
    pub window_len: u16,
    pub max_seg_size: Option<u16>,
    pub payload: &'a [u8],
}

A high-level representation of a Transmission Control Protocol packet.

Fields

Methods

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

[src]

Parse a Transmission Control Protocol packet and return a high-level representation.

[src]

Return the length of a header that will be emitted from this 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 a Transmission Control Protocol packet.

[src]

Return the length of the segment, in terms of sequence space.

[src]

Return whether the segment has no flags set (except PSH) and no data.

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