pub struct BatchDrain<F: BackendFactory> { /* private fields */ }Expand description
Drains up to limit completions in one call.
use wireshift::{Ring, RingConfig, strategy::BatchDrain};
let ring = Ring::new(RingConfig::default())?;
let drain = BatchDrain::new(ring, 16);
let _ = drain;Implementations§
Trait Implementations§
Source§impl<F: Clone + BackendFactory> Clone for BatchDrain<F>
impl<F: Clone + BackendFactory> Clone for BatchDrain<F>
Source§fn clone(&self) -> BatchDrain<F>
fn clone(&self) -> BatchDrain<F>
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 moreAuto Trait Implementations§
impl<F> !RefUnwindSafe for BatchDrain<F>
impl<F> !UnwindSafe for BatchDrain<F>
impl<F> Freeze for BatchDrain<F>
impl<F> Send for BatchDrain<F>
impl<F> Sync for BatchDrain<F>
impl<F> Unpin for BatchDrain<F>where
F: Unpin,
impl<F> UnsafeUnpin for BatchDrain<F>
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