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,
}Expand description
A bandwidth delivery rate estimate with associated metadata
Fields§
§interval: DurationThe length of the sampling interval
delivered_bytes: u64The amount of data in bytes marked as delivered over the sampling interval
lost_bytes: u64The amount of data in bytes marked as lost over the sampling interval
ecn_ce_count: u64The number of packets marked as explicit congestion experienced over the sampling interval
is_app_limited: boolPacketInfo::is_app_limited from the most recent acknowledged packet
prior_delivered_bytes: u64PacketInfo::delivered_bytes from the most recent acknowledged packet
bytes_in_flight: u32PacketInfo::bytes_in_flight from the most recent acknowledged packet
prior_lost_bytes: u64PacketInfo::lost_bytes from the most recent acknowledged packet
prior_ecn_ce_count: u64PacketInfo::ecn_ce_count from the most recent acknowledged packet
Implementations§
Source§impl RateSample
impl RateSample
Sourcepub fn delivery_rate(&self) -> Bandwidth
pub fn delivery_rate(&self) -> Bandwidth
Gets the delivery rate of 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 duplicate 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 moreSource§impl Debug for RateSample
impl Debug for RateSample
Source§impl Default for RateSample
impl Default for RateSample
Source§fn default() -> RateSample
fn default() -> RateSample
Returns the “default value” for a type. Read more
Source§impl IntoEvent<RateSample> for RateSample
impl IntoEvent<RateSample> for RateSample
fn into_event(self) -> RateSample
impl Copy for RateSample
Auto 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