pub struct Acknowledgement {
    pub ack_begin: u32,
    pub ack_end: u16,
    pub miss_count: u16,
    pub miss: Vec<u16>,
}
Expand description

Structure to reperesent the Acknowledgement format

Fields

ack_begin: u32

The sequence number of the packet from which the Acknowledgement begins

ack_end: u16

The number of packets that this Acknowledgement includes. ACK number of the last packet to be acknowledged relative to the ack_begin

Note: If the sequence number of a packet is ack, the relative sequence number to ack_begin would be ack - ack_begin.

miss_count: u16

Number of packets from ack_begin till ack_begin + ack_end that are not acknowledged

miss: Vec<u16>

Vector of ack numbers (relative to ack_begin) which are missing. Length of the vector is miss_count.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.