Struct s2n_quic_core::event::api::RateSample
source · #[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: 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
delivery_rate_bytes_per_second: u64The 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 moresource§impl Debug for RateSample
impl Debug for RateSample
source§impl IntoEvent<RateSample> for RateSample
impl IntoEvent<RateSample> for RateSample
fn into_event(self) -> RateSample
Auto Trait Implementations§
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