pub struct DummyFiller { /* private fields */ }Expand description
Generates zero-filled dummy packets.
Implementations§
Source§impl DummyFiller
impl DummyFiller
Sourcepub fn with_packet_size(packet_size: usize) -> Self
pub fn with_packet_size(packet_size: usize) -> Self
Creates a filler with a custom payload size.
Sourcepub const fn sent_packets(&self) -> u64
pub const fn sent_packets(&self) -> u64
Number of filler packets produced so far (for tests / metrics).
Trait Implementations§
Source§impl BacklogFiller for DummyFiller
impl BacklogFiller for DummyFiller
Source§fn max_packet_size(&self) -> usize
fn max_packet_size(&self) -> usize
Maximum filler payload size in bytes.
Source§impl Clone for DummyFiller
impl Clone for DummyFiller
Source§fn clone(&self) -> DummyFiller
fn clone(&self) -> DummyFiller
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 moreSource§impl Debug for DummyFiller
impl Debug for DummyFiller
Auto Trait Implementations§
impl Freeze for DummyFiller
impl RefUnwindSafe for DummyFiller
impl Send for DummyFiller
impl Sync for DummyFiller
impl Unpin for DummyFiller
impl UnsafeUnpin for DummyFiller
impl UnwindSafe for DummyFiller
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