pub struct TestRunAttrs { /* private fields */ }Expand description
Kernel-side execution attributes for TestRunOptions.
Controls how the kernel runs the test (XDP batch size, and the associated flag bits), as opposed to what data is passed.
Implementations§
Source§impl TestRunAttrs
impl TestRunAttrs
Sourcepub const fn xdp_live_frames(self, batch_size: u32) -> Self
pub const fn xdp_live_frames(self, batch_size: u32) -> Self
Sets the batch size for XDP live frames testing.
This automatically sets the BPF_F_TEST_XDP_LIVE_FRAMES flag.
This option only works with XDP programs.
Trait Implementations§
Source§impl Debug for TestRunAttrs
impl Debug for TestRunAttrs
Auto Trait Implementations§
impl Freeze for TestRunAttrs
impl RefUnwindSafe for TestRunAttrs
impl Send for TestRunAttrs
impl Sync for TestRunAttrs
impl Unpin for TestRunAttrs
impl UnsafeUnpin for TestRunAttrs
impl UnwindSafe for TestRunAttrs
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