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

A congestion controller that implements “CUBIC for Fast Long-Distance Networks” as specified in https://tools.ietf.org/html/rfc8312. The Hybrid Slow Start algorithm is used for determining the slow start threshold.

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the size of the current congestion window in bytes

Returns the current bytes in flight

Returns true if the congestion window does not have sufficient space for a packet of max_datagram_size considering the current bytes in flight Read more

Returns true if the current state of the congestion controller requires a packet to be transmitted without respecting the available congestion window Read more

Invoked whenever a congestion controlled packet is sent

Invoked each time the round trip time is updated, which is whenever the largest acknowledged packet in an ACK frame is newly acknowledged Read more

Invoked for each newly acknowledged packet

Invoked when packets are declared lost

Invoked from on_packets_lost, but is also directly invoked when the Explicit Congestion Notification counter increases. Read more

Invoked when the path maximum transmission unit is updated.

Invoked for each packet discarded when a packet number space is discarded.

Returns the earliest time that a packet may be transmitted. 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 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.