pub struct SackResult {
pub retired: Vec<RetiredSegment>,
pub lost: Vec<LostSegment>,
}Expand description
Outcome of processing a received SACK against the send buffer.
Fields§
§retired: Vec<RetiredSegment>The segments newly retired by this SACK (were in the send buffer, now removed). The caller feeds each into congestion control / the RTT estimator. Empty if the SACK acknowledged nothing still buffered (e.g. a duplicate or stale ACK).
lost: Vec<LostSegment>Segments newly declared lost (packet- or time-threshold, RFC 9002) by this
SACK — still buffered, now flagged for Pass-0 fast-retransmit. The caller
feeds each into Session::on_packet_lost (the real BBR loss signal).
Implementations§
Source§impl SackResult
impl SackResult
Sourcepub fn lost_offsets(&self) -> Vec<SequenceNumber> ⓘ
pub fn lost_offsets(&self) -> Vec<SequenceNumber> ⓘ
The gap-free offsets of the segments newly declared lost, ascending.
Trait Implementations§
Source§impl Debug for SackResult
impl Debug for SackResult
Source§impl Default for SackResult
impl Default for SackResult
Source§fn default() -> SackResult
fn default() -> SackResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SackResult
impl RefUnwindSafe for SackResult
impl Send for SackResult
impl Sync for SackResult
impl Unpin for SackResult
impl UnsafeUnpin for SackResult
impl UnwindSafe for SackResult
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