pub struct StreamNack {
pub stream_id: u64,
pub next_expected: u64,
pub missing_bitmap: u64,
}Expand description
Receiver → sender retransmit request. Names a stream and the gaps
the receiver is missing: next_expected is the lowest sequence not
yet received contiguously, and missing_bitmap bit i is set iff
next_expected + 1 + i is also still missing. The sender feeds this
to ReliableStream::on_nack to pull the matching retransmit
descriptors. Carries stream_id itself (rides CONTROL_STREAM_ID
like the window grant), so the sender doesn’t depend on the packet
header’s stream field.
Fields§
§stream_id: u64Stream the NACK applies to.
next_expected: u64Lowest sequence the receiver has not received contiguously.
missing_bitmap: u64Bitmap of further missing sequences after next_expected.
Implementations§
Trait Implementations§
Source§impl Clone for StreamNack
impl Clone for StreamNack
Source§fn clone(&self) -> StreamNack
fn clone(&self) -> StreamNack
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 StreamNack
Source§impl Debug for StreamNack
impl Debug for StreamNack
impl Eq for StreamNack
Source§impl PartialEq for StreamNack
impl PartialEq for StreamNack
Source§fn eq(&self, other: &StreamNack) -> bool
fn eq(&self, other: &StreamNack) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StreamNack
Auto Trait Implementations§
impl Freeze for StreamNack
impl RefUnwindSafe for StreamNack
impl Send for StreamNack
impl Sync for StreamNack
impl Unpin for StreamNack
impl UnsafeUnpin for StreamNack
impl UnwindSafe for StreamNack
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.