pub struct LostSegment {
pub stream_offset: SequenceNumber,
pub size: u64,
}Expand description
One segment newly declared lost by Stream::on_sack’s RFC-9002 loss
detector (L1-B) — still buffered, now flagged for fast-retransmit.
Fields§
§stream_offset: SequenceNumberGap-free reliable offset of the lost segment.
size: u64On-wire payload size — the caller reports it to congestion control via
Session::on_packet_lost.
Trait Implementations§
Source§impl Clone for LostSegment
impl Clone for LostSegment
Source§fn clone(&self) -> LostSegment
fn clone(&self) -> LostSegment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LostSegment
Auto Trait Implementations§
impl Freeze for LostSegment
impl RefUnwindSafe for LostSegment
impl Send for LostSegment
impl Sync for LostSegment
impl Unpin for LostSegment
impl UnsafeUnpin for LostSegment
impl UnwindSafe for LostSegment
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