pub struct RecoveryQueue<Item> { /* private fields */ }
Expand description
A recovery queue is used to store packets that need to be resent. This is used for sequenced and ordered packets.
Implementations§
Trait Implementations§
Source§impl<Item: Clone> Clone for RecoveryQueue<Item>
impl<Item: Clone> Clone for RecoveryQueue<Item>
Source§fn clone(&self) -> RecoveryQueue<Item>
fn clone(&self) -> RecoveryQueue<Item>
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 moreSource§impl<Item: Debug> Debug for RecoveryQueue<Item>
impl<Item: Debug> Debug for RecoveryQueue<Item>
Source§impl<Item> NetQueue<Item> for RecoveryQueue<Item>
impl<Item> NetQueue<Item> for RecoveryQueue<Item>
Source§type KeyId = u32
type KeyId = u32
The
Item
of the queue.
The “key” that each Item
is stored under
(used for removal)Source§fn insert(
&mut self,
item: Item,
) -> Result<Self::KeyId, NetQueueError<Self::Error>>
fn insert( &mut self, item: Item, ) -> Result<Self::KeyId, NetQueueError<Self::Error>>
Inserts
Item
into the queue, given the conditions are fulfilled.Source§fn remove(
&mut self,
key: Self::KeyId,
) -> Result<Item, NetQueueError<Self::Error>>
fn remove( &mut self, key: Self::KeyId, ) -> Result<Item, NetQueueError<Self::Error>>
Remove an
Item
from the queue by providing an instance of Self::KeyId
Auto Trait Implementations§
impl<Item> Freeze for RecoveryQueue<Item>
impl<Item> RefUnwindSafe for RecoveryQueue<Item>where
Item: RefUnwindSafe,
impl<Item> Send for RecoveryQueue<Item>where
Item: Send,
impl<Item> Sync for RecoveryQueue<Item>where
Item: Sync,
impl<Item> Unpin for RecoveryQueue<Item>where
Item: Unpin,
impl<Item> UnwindSafe for RecoveryQueue<Item>where
Item: UnwindSafe,
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