pub struct FixedPacerQueue<const DEPTH: usize, M = ()> { /* private fields */ }Trait Implementations§
Source§impl<const DEPTH: usize, M> Default for FixedPacerQueue<DEPTH, M>
impl<const DEPTH: usize, M> Default for FixedPacerQueue<DEPTH, M>
Source§impl<const DEPTH: usize, M: Copy> PacerQueue<M> for FixedPacerQueue<DEPTH, M>
impl<const DEPTH: usize, M: Copy> PacerQueue<M> for FixedPacerQueue<DEPTH, M>
fn insert( &mut self, bytes: &[u8], hops: u8, now: InstantMillis, metadata: M, ) -> Result<(), PacerReject>
fn take_next_with<R>(&mut self, f: impl FnOnce(&[u8], M) -> R) -> Option<R>
fn evict_stale(&mut self, now: InstantMillis, life_ms: u64)
fn is_empty(&self) -> bool
fn len(&self) -> usize
fn clear(&mut self) -> usize
Auto Trait Implementations§
impl<const DEPTH: usize, M> Freeze for FixedPacerQueue<DEPTH, M>where
M: Freeze,
impl<const DEPTH: usize, M> RefUnwindSafe for FixedPacerQueue<DEPTH, M>where
M: RefUnwindSafe,
impl<const DEPTH: usize, M> Send for FixedPacerQueue<DEPTH, M>where
M: Send,
impl<const DEPTH: usize, M> Sync for FixedPacerQueue<DEPTH, M>where
M: Sync,
impl<const DEPTH: usize, M> Unpin for FixedPacerQueue<DEPTH, M>where
M: Unpin,
impl<const DEPTH: usize, M> UnsafeUnpin for FixedPacerQueue<DEPTH, M>where
M: UnsafeUnpin,
impl<const DEPTH: usize, M> UnwindSafe for FixedPacerQueue<DEPTH, M>where
M: 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