pub struct QueueLimitDetector { /* private fields */ }Expand description
The queueing delay of the packets reported, and whether a loss among them is the queue overflowing.
The one-way delay of a packet is its arrival on the receiver’s clock less its departure on
the sender’s: the clocks’ offset is unknown but constant, so the lowest one-way delay over
QUEUE_BASE_WINDOW stands for the path with an empty queue and anything above it is
queueing. A feedback batch with a loss in it, whose arrived packets all waited at least
QUEUE_AT_LIMIT_SHARE of the highest queueing delay of the last QUEUE_HIGH_WINDOW
(and at least QUEUE_AT_LIMIT_MIN_DELAY), lost its packets out of a queue at its limit:
a tail drop.
Implementations§
Source§impl QueueLimitDetector
impl QueueLimitDetector
Sourcepub fn on_reports(&mut self, now: Instant, reports: &[PacketReport]) -> bool
pub fn on_reports(&mut self, now: Instant, reports: &[PacketReport]) -> bool
Reads one feedback batch, read at now: whether a packet in it was lost out of a queue
at its limit.
Trait Implementations§
Source§impl Clone for QueueLimitDetector
impl Clone for QueueLimitDetector
Source§impl Debug for QueueLimitDetector
impl Debug for QueueLimitDetector
Auto Trait Implementations§
impl Forget for QueueLimitDetector
impl Freeze for QueueLimitDetector
impl Move for QueueLimitDetector
impl RefUnwindSafe for QueueLimitDetector
impl Send for QueueLimitDetector
impl Sync for QueueLimitDetector
impl Unpin for QueueLimitDetector
impl UnsafeUnpin for QueueLimitDetector
impl UnwindSafe for QueueLimitDetector
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