pub struct DeliverySample {
pub delivered_bytes: u64,
pub sent_at: Instant,
pub acked_at: Instant,
pub packet_bytes: u64,
pub is_app_limited: bool,
pub ack_delay_us: u64,
}Expand description
A single delivery sample (attached to each ACKed packet)
Fields§
§delivered_bytes: u64Bytes delivered at time of sending
sent_at: InstantTimestamp when packet was sent
acked_at: InstantTimestamp when ACK was received
packet_bytes: u64Bytes in this packet
is_app_limited: boolWhether the sender was application-limited when this packet was sent
ack_delay_us: u64ACK delay reported by the receiver (microseconds). The receiver measures time between packet receipt and ACK send; subtracting this from the observed RTT gives the propagation delay.
Trait Implementations§
Source§impl Clone for DeliverySample
impl Clone for DeliverySample
Source§fn clone(&self) -> DeliverySample
fn clone(&self) -> DeliverySample
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 DeliverySample
Auto Trait Implementations§
impl Freeze for DeliverySample
impl RefUnwindSafe for DeliverySample
impl Send for DeliverySample
impl Sync for DeliverySample
impl Unpin for DeliverySample
impl UnsafeUnpin for DeliverySample
impl UnwindSafe for DeliverySample
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