Enum RecoveryField

Source
#[repr(C)]
pub enum RecoveryField {
Show 18 variants LatestRtt, SmoothedRtt, Rttvar, MinRtt, FirstRttSample, MaxAckDelay, LossDetectionTimer, PtoCount(KPacketNumberSpace), TimeOfLastAckElicitingPacket(KPacketNumberSpace), LargestAckedPacket(KPacketNumberSpace), LossTime(KPacketNumberSpace), SentPackets(KPacketNumberSpace, u64), MaxDatagramSize, EcnCeCounters(KPacketNumberSpace), BytesInFlight, CongestionWindow, CongestionRecoveryStartTime, Ssthresh,
}
Expand description

Fields for the Recovery as defined by quic-recovery, Section A.3. These fields also include the congestion control ones, as defined by quic-recovery, Section B.2.

Variants§

§

LatestRtt

The most recent RTT measurement made when receiving an ack for a previously unacked packet.

§

SmoothedRtt

The smoothed RTT of the connection, computed as described in Section 5.3 of quic-recovery.

§

Rttvar

The RTT variation, computed as described in Section 5.3 of quic-recovery.

§

MinRtt

The minimum RTT seen in the connection, ignoring acknowledgment delay, as described in Section 5.2 of quic-recovery.

§

FirstRttSample

The time that the first RTT sample was obtained.

§

MaxAckDelay

The maximum amount of time by which the receiver intends to delay acknowledgments for packets in the Application Data packet number space, as defined by the eponymous transport parameter (Section 18.2 of [QUIC-TRANSPORT]). Note that the actual ack_delay in a received ACK frame may be larger due to late timers, reordering, or loss.

§

LossDetectionTimer

Multi-modal timer used for loss detection.

§

PtoCount(KPacketNumberSpace)

The number of times a PTO has been sent without receiving an ack. Unlike specified in the recovery draft, this value is returned on a per-epoch basis. Returns a usize.

§

TimeOfLastAckElicitingPacket(KPacketNumberSpace)

The time the most recent ack-eliciting packet was sent.

§

LargestAckedPacket(KPacketNumberSpace)

The largest packet number acknowledged in the packet number space so far.

§

LossTime(KPacketNumberSpace)

The time at which the next packet inthat packet number space will be considered lost based on exceeding the reordering window in time.

§

SentPackets(KPacketNumberSpace, u64)

An association of packet numbers in a packet number space to information about them. Described in detail above in Appendix A.1 of quic-recovery.

§

MaxDatagramSize

The sender’s current maximum payload size. Does not include UDP or IP overhead. The max datagram size is used for congestion window computations. An endpoint sets the value of this variable based on its Path Maximum Transmission Unit (PMTU; see Section 14.2 of [QUIC-TRANSPORT]), with a minimum value of 1200 bytes.

§

EcnCeCounters(KPacketNumberSpace)

The highest value reported for the ECN-CE counter in the packet number space by the peer in an ACK frame. This value is used to detect increases in the reported ECN-CE counter.

§

BytesInFlight

The sum of the size in bytes of all sent packets that contain at least one ack-eliciting or PADDING frame, and have not been acknowledged or declared lost. The size does not include IP or UDP overhead, but does include the QUIC header and AEAD overhead. Packets only containing ACK frames do not count towards bytes_in_flight to ensure congestion control does not impede congestion feedback.

§

CongestionWindow

Maximum number of bytes-in-flight that may be sent.

§

CongestionRecoveryStartTime

The time when QUIC first detects congestion due to loss or ECN, causing it to enter congestion recovery. When a packet sent after this time is acknowledged, QUIC exits congestion recovery.

§

Ssthresh

Slow start threshold in bytes. When the congestion window is below ssthresh, the mode is slow start and the window grows by the number of bytes acknowledged.

Trait Implementations§

Source§

impl Clone for RecoveryField

Source§

fn clone(&self) -> RecoveryField

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RecoveryField

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for RecoveryField

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<RecoveryField, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for RecoveryField

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for RecoveryField

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> ArchivePointee for T

Source§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
Source§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> LayoutRaw for T

Source§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Returns the layout of the type.
Source§

impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
where T: SharedNiching<N1, N2>, N1: Niching<T>, N2: Niching<T>,

Source§

unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool

Returns whether the given value has been niched. Read more
Source§

fn resolve_niched(out: Place<NichedOption<T, N1>>)

Writes data to out indicating that a T is niched.
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The metadata type for pointers and references to this type.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,