Skip to main content

AssociationStats

Struct AssociationStats 

Source
pub struct AssociationStats { /* private fields */ }
Expand description

Association statistics

Implementations§

Source§

impl AssociationStats

Source

pub fn inc_datas(&mut self)

Counts one DATA chunk received.

Source

pub fn get_num_datas(&mut self) -> u64

The number of DATA chunks received.

Source

pub fn inc_sacks(&mut self)

Counts one SACK chunk received.

Source

pub fn get_num_sacks(&mut self) -> u64

The number of SACK chunks received.

Source

pub fn inc_t3timeouts(&mut self)

Counts one T3-rtx retransmission timeout.

Source

pub fn get_num_t3timeouts(&mut self) -> u64

The number of T3-rtx retransmission timeouts, a signal of loss or a stalled path.

Source

pub fn inc_ack_timeouts(&mut self)

Counts one delayed-acknowledgement timeout.

Source

pub fn get_num_ack_timeouts(&mut self) -> u64

The number of delayed-acknowledgement timeouts.

Source

pub fn inc_fast_retrans(&mut self)

Counts one fast retransmission.

Source

pub fn get_num_fast_retrans(&mut self) -> u64

The number of fast retransmissions, triggered by SACK gap reports rather than a timeout.

Source

pub fn inc_retransmissions(&mut self)

Counts one DATA chunk sent again (by T3-rtx, Fast Retransmit or with a repeated COOKIE ACK).

Source

pub fn get_num_retransmissions(&mut self) -> u64

The number of DATA chunks sent again, whatever made them go again.

Source

pub fn inc_partially_reliable_retransmissions(&mut self)

Counts one DATA chunk of a partially reliable message (RFC 3758: a lifetime or a retransmission limit, RFC 7496) sent again.

Source

pub fn get_num_partially_reliable_retransmissions(&mut self) -> u64

Of Self::get_num_retransmissions, the DATA chunks of partially reliable messages (RFC 3758, RFC 7496: sent with a lifetime or a retransmission limit) sent again; the rest are reliable messages (on a WebRTC association, the DCEP messages, RFC 8832 section 5, beside the reliable channels). With a limit of zero retransmissions (RFC 8831 section 6.6, maxRetransmits 0) and the peer’s support for partial reliability, a message’s chunks are never counted here. Without that support (RFC 3758 3.3) partially reliable messages are retransmitted as reliable ones, and counted here.

Source

pub fn inc_abandoned_messages(&mut self)

Counts one message abandoned (RFC 3758 3.5 A2): sent in part or whole and never to be sent again, or dropped before it was sent.

Source

pub fn get_num_abandoned_messages(&mut self) -> u64

The number of messages abandoned under their partial reliability policy.

Source

pub fn inc_forward_tsns(&mut self)

Counts one FORWARD TSN (or I-FORWARD TSN) chunk sent.

Source

pub fn get_num_forward_tsns(&mut self) -> u64

The number of FORWARD TSN (or I-FORWARD TSN) chunks sent (RFC 3758 3.5 C3, A5).

Source

pub fn inc_fast_retrans_abandoned(&mut self)

Counts one chunk that Fast Retransmit would have sent again and abandoned instead: its message’s retransmission budget was spent (RFC 3758 3.5 A2, RFC 7496).

Source

pub fn get_num_fast_retrans_abandoned(&mut self) -> u64

The number of losses Fast Retransmit found in partially reliable messages whose budget was spent, so that they were abandoned (and skipped by FORWARD TSN) without waiting for T3-rtx.

Source

pub fn add_t3_wait(&mut self, rto_ms: u64)

Adds the RTO, in milliseconds, that a T3-rtx expiry waited out.

Source

pub fn get_t3_wait(&mut self) -> Duration

The sum of the RTOs the T3-rtx expiries waited out (each the RTO in force when the timer expired, before the back-off of RFC 9260 6.3.3 E2): how much of a transfer’s time the retransmission timer accounts for.

Source

pub fn inc_sack_losses(&mut self)

Counts one SACK loss found from a Duplicate TSN report (RFC 9260 6.2).

Source

pub fn get_num_sack_losses(&mut self) -> u64

The SACKs found lost (RFC 9260 6.2: the sender “MAY use the duplicate TSN information to determine if SACK chunk loss is occurring”): DATA this side sent again on a retransmission timeout that the peer then reported as a duplicate, which it had received before, so the SACK that acknowledged it did not arrive in time.

Source

pub fn inc_reneged(&mut self)

Counts one DATA chunk this receiver dropped from those it held above its cumulative TSN.

Source

pub fn get_num_reneged(&mut self) -> u64

The DATA chunks this receiver reneged on (RFC 9260 6.2.1): held above its cumulative TSN, which a SACK reports in a Gap Ack Block, and dropped, so the peer has to send them again. Only TransportConfig::with_zero_window_renege does so (RFC 9260 6.2: a chunk filling a gap through a closed window takes the place of the largest TSN held for reordering).

Source

pub fn reset(&mut self)

Zeroes every counter.

Trait Implementations§

Source§

impl Clone for AssociationStats

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for AssociationStats

Source§

impl Debug for AssociationStats

Source§

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

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

impl Default for AssociationStats

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

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> 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> 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 = !

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

fn try_from(value: U) -> Result<T, !>

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.