pub enum Acknowledgement {
Lite(SeqNumber),
Small(SeqNumber, AckStatistics),
Full(SeqNumber, AckStatistics, FullAckSeqNumber),
}
Expand description
Data included in a ACK packet. spec
There are three types of ACK packets:
- Full - includes all the fields
- Lite - no optional fields
- Small - Includes rtt, rtt_variance, and buffer_available
However, these aren’t necessarily clean categories–there may be some amount of overlap so full acks are allowed to have no extra info and short acks are allowed to have all the info
SeqNumber is the packet sequence number that all packets have been received until (excluding)
Variants
Lite(SeqNumber)
Tuple Fields
0: SeqNumber
Small(SeqNumber, AckStatistics)
Full(SeqNumber, AckStatistics, FullAckSeqNumber)
Implementations
Trait Implementations
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 RefUnwindSafe for Acknowledgement
impl Send for Acknowledgement
impl Sync for Acknowledgement
impl Unpin for Acknowledgement
impl UnwindSafe for Acknowledgement
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.