pub struct PacketBitmap { /* private fields */ }Expand description
Bitmap tracking received packets within a block.
Implementations§
Source§impl PacketBitmap
impl PacketBitmap
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Check whether the bitmap reports all packets received.
Sourcepub fn missing_ranges(&self) -> Vec<RangeInclusive<u16>>
pub fn missing_ranges(&self) -> Vec<RangeInclusive<u16>>
Return missing packet ranges as inclusive [start, end] indices.
Trait Implementations§
Source§impl Clone for PacketBitmap
impl Clone for PacketBitmap
Source§fn clone(&self) -> PacketBitmap
fn clone(&self) -> PacketBitmap
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PacketBitmap
impl RefUnwindSafe for PacketBitmap
impl Send for PacketBitmap
impl Sync for PacketBitmap
impl Unpin for PacketBitmap
impl UnwindSafe for PacketBitmap
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