#[non_exhaustive]pub struct RateSample {
pub interval: Duration,
pub delivered_bytes: u64,
pub lost_bytes: u64,
pub ecn_ce_count: u64,
pub is_app_limited: bool,
pub prior_delivered_bytes: u64,
pub bytes_in_flight: u32,
pub prior_lost_bytes: u64,
pub prior_ecn_ce_count: u64,
pub delivery_rate_bytes_per_second: u64,
}
Expand description
A bandwidth delivery rate estimate with associated metadata
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.interval: Duration
The length of the sampling interval
delivered_bytes: u64
The amount of data in bytes marked as delivered over the sampling interval
lost_bytes: u64
The amount of data in bytes marked as lost over the sampling interval
ecn_ce_count: u64
The number of packets marked as explicit congestion experienced over the sampling interval
is_app_limited: bool
PacketInfo::is_app_limited from the most recent acknowledged packet
prior_delivered_bytes: u64
PacketInfo::delivered_bytes from the most recent acknowledged packet
bytes_in_flight: u32
PacketInfo::bytes_in_flight from the most recent acknowledged packet
prior_lost_bytes: u64
PacketInfo::lost_bytes from the most recent acknowledged packet
prior_ecn_ce_count: u64
PacketInfo::ecn_ce_count from the most recent acknowledged packet
delivery_rate_bytes_per_second: u64
The delivery rate for this rate sample
Trait Implementations§
source§impl Clone for RateSample
impl Clone for RateSample
source§fn clone(&self) -> RateSample
fn clone(&self) -> RateSample
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for RateSample
impl RefUnwindSafe for RateSample
impl Send for RateSample
impl Sync for RateSample
impl Unpin for RateSample
impl UnwindSafe for RateSample
Blanket Implementations§
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