pub struct PathState {
pub path_id: u8,
pub rtt_ms: AtomicU32,
pub loss_pct: AtomicU8,
pub last_packet_seen: RwLock<Option<Instant>>,
/* private fields */
}Expand description
Per-path bookkeeping. Lives inside PathRegistry.
Fields§
§path_id: u8§rtt_ms: AtomicU32EMA-smoothed RTT estimate for this path, in milliseconds. Updated by the scheduler / data pump as ACKs land.
loss_pct: AtomicU8Smoothed loss percentage (0-100) for this path.
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