pub struct PathState {
pub path_id: u8,
pub rtt_ms: AtomicU32,
pub loss_pct: AtomicU8,
pub last_packet_seen: RwLock<Option<Instant>>,
/* private fields */
}Available on crate feature
std only.Expand description
Per-path bookkeeping. Lives inside PathRegistry.
Fields§
§path_id: u8§rtt_ms: AtomicU32EMA-smoothed RTT estimate for this path, in milliseconds. Reserved
per-path telemetry slot — currently unwired: live RTT/loss for the
active path is tracked by the BBR BandwidthEstimator, not here (the
multipath scheduler that would have fed these is vestigial; the
project does single-path connection migration, not aggregation).
loss_pct: AtomicU8Smoothed loss percentage (0-100) for this path. Reserved, currently
unwired — see rtt_ms above.
last_packet_seen: RwLock<Option<Instant>>Wall-clock instant of the most recent packet observed on this path. Used by the timeout sweep.
Implementations§
Auto Trait Implementations§
impl !Freeze for PathState
impl !RefUnwindSafe for PathState
impl Send for PathState
impl Sync for PathState
impl Unpin for PathState
impl UnsafeUnpin for PathState
impl UnwindSafe for PathState
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