Struct network_time::RetransmissionTimeOutData[][src]

pub struct RetransmissionTimeOutData { /* fields omitted */ }

Maintains the state of the retransmission time out timer.

  • Calculates according to RFC 6298
  • Resets the interpretation of the measurement of round-trip times once a threshold of back off doubling is reached (MaximumNumberOfBackOffsBeforeResettingMeasurements).

This logic is based on RFC 6298, which obsoleted RFC 2988 (which itself clarified RFC 1122 and RFC 793 and complemented RFC 2581).

In practice, RFC 6298 is extremely similar to RFC 2988.

This timer is used with congestion control; see RFC 5681 (which itself obsoletes RFC 2581).

Methods

impl RetransmissionTimeOutData
[src]

InitialSmoothedRoundTripTime: MillisecondDuration = MillisecondDuration(<Self>::MinimumRetransmissionTimeOut.0 / 3)

This is the reverse of the logic in compute_retransmission_time_out().

InitialRoundTripTimeVariance: MillisecondDuration = MillisecondDuration(<Self>::InitialSmoothedRoundTripTime.0 / 2)

This matches the logic in first_measurement_of_round_trip_time_made().

Creates a new instance.

Current retransmission time out, RTO.

Increment retransmissions.

Reset retransmissions.

Reset retransmissions after establishing state if we sent the first Synchronize segment and the retransmission timer fired at least once.

Entering established state; a different set of back off scalars will now apply.

Process a round trip time measurement.

Obtain current smoothed round trip time, SRTT, and round trip time variances, RTTVAR.

Trait Implementations

impl Debug for RetransmissionTimeOutData
[src]

Formats the value using the given formatter. Read more

impl Clone for RetransmissionTimeOutData
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for RetransmissionTimeOutData
[src]

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

This method tests for !=.

impl Eq for RetransmissionTimeOutData
[src]

impl PartialOrd for RetransmissionTimeOutData
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for RetransmissionTimeOutData
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Hash for RetransmissionTimeOutData
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations