pub struct Sample {
pub rtt_ms: f64,
pub min_rtt_ms: f64,
pub delivery_kbps: u64,
pub lost_packets_delta: u64,
pub frames_dropped_backlog_delta: u64,
pub pilot_chunk_loss_pct: Option<f64>,
pub pilot_frames_incomplete_delta: u64,
pub send_kbps: u64,
pub keyframe_just_sent: bool,
}Fields§
§rtt_ms: f64§min_rtt_ms: f64§delivery_kbps: u64Transport transmit rate over the last second.
lost_packets_delta: u64§frames_dropped_backlog_delta: u64§pilot_chunk_loss_pct: Option<f64>Chunk loss measured by pairing the agent’s chunks_sent with the
pilot’s chunksRx over the last window, in percent. None until the
pilot has reported.
pilot_frames_incomplete_delta: u64Frames the pilot could not reconstruct even with parity — genuinely incomplete ones only (timed-out frames excluded by the caller).
send_kbps: u64§keyframe_just_sent: boolA keyframe left the sender within the last second (RTT sample is polluted by our own burst).
Trait Implementations§
impl Copy for Sample
impl StructuralPartialEq for Sample
Auto Trait Implementations§
impl Freeze for Sample
impl RefUnwindSafe for Sample
impl Send for Sample
impl Sync for Sample
impl Unpin for Sample
impl UnsafeUnpin for Sample
impl UnwindSafe for Sample
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