pub struct SctpLinkStats {
pub bytes_sent: u64,
pub bytes_received: u64,
pub srtt: Duration,
pub rto: Duration,
pub retransmissions: u64,
pub duration: Duration,
}Expand description
Snapshot of SCTP association link statistics for periodic logging.
srtt is the smoothed round-trip time (the best latency estimate), while
rto is the retransmission timeout derived from it. bytes_sent /
bytes_received are cumulative since the association was created.
Fields§
§bytes_sent: u64Total bytes handed to SCTP for transmission since association start.
bytes_received: u64Total bytes received from the peer since association start.
srtt: DurationSmoothed round-trip time (RFC 4960 RTO calculator SRTT).
rto: DurationRetransmission timeout (derived from SRTT + RTTVAR).
retransmissions: u64Number of TSN retransmissions so far.
duration: DurationTime elapsed since the association was created.
Trait Implementations§
Source§impl Clone for SctpLinkStats
impl Clone for SctpLinkStats
Source§fn clone(&self) -> SctpLinkStats
fn clone(&self) -> SctpLinkStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SctpLinkStats
Auto Trait Implementations§
impl Freeze for SctpLinkStats
impl RefUnwindSafe for SctpLinkStats
impl Send for SctpLinkStats
impl Sync for SctpLinkStats
impl Unpin for SctpLinkStats
impl UnsafeUnpin for SctpLinkStats
impl UnwindSafe for SctpLinkStats
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more