pub struct AcknowledgementList { /* private fields */ }
Expand description

A structure to store the Acknowledgements that need to be sent.

  • Used by receiving module to add Acknowledgements for the packets that are received
  • Used by sending module to get Acknowledgements to be sent with the next packet

Implementations

Creates a new instance of AcknowledgementList

Arguments
  • ack_begin - The ack_begin value from which this Acknowledgement begins

Check if the given sequence number has been added to the list

Arguments
  • ack - The sequence number of the packet to check

Insert a sequence number into the Acknowledgement list

Arguments
  • ack - Sequence number of the packet to be added to the Acknowledgement list

Get an Acknowledgement structure out of this AcknowledgementList

  • Used to add the Acknowledgement to the next outgoing packet

Check if the AcknowledgementList is complete. The list is complete when there are not missing packets between ack_begin to ack_begin + ack_end. Thus, all packets within that window have been acknowledged

Trait Implementations

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 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.