pub struct CopyConfig { /* private fields */ }Expand description
Optional configuration for copying packets.
This Defaults to the following:
ring_buf_size: 256kbforce_enabled: false
Implementations§
Source§impl CopyConfig
impl CopyConfig
Sourcepub fn force_enabled(self) -> Self
pub fn force_enabled(self) -> Self
Force the Tap to provision copy primitives, even if no rules use copy. Set this if you
want to dynamically add a rule with Action::Copy later.
Sourcepub fn ring_buf_size(self, ring_buf_size: u32) -> Self
pub fn ring_buf_size(self, ring_buf_size: u32) -> Self
Override the default ring buffer size.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CopyConfig
impl RefUnwindSafe for CopyConfig
impl Send for CopyConfig
impl Sync for CopyConfig
impl Unpin for CopyConfig
impl UnsafeUnpin for CopyConfig
impl UnwindSafe for CopyConfig
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