pub struct SocketOptions {
pub zero_copy_mode: bool,
pub copy_mode: bool,
pub tx_ring_size: u32,
pub rx_ring_size: u32,
pub inhibit_prog_load: bool,
}Expand description
Configuration options for AF_XDP sockets
Fields§
§zero_copy_mode: boolForce XDP zero copy mode (XDP_ZEROCOPY flag)
copy_mode: boolForce XDP copy mode (XDP_COPY flag)
tx_ring_size: u32Tx ring size (must be a power of two)
rx_ring_size: u32Rx ring size (must be a power of two)
inhibit_prog_load: boolInhibit libbpf from auto-loading an XDP program (XSK_LIBBPF_FLAGS__INHIBIT_PROG_LOAD)
Trait Implementations§
Source§impl Clone for SocketOptions
impl Clone for SocketOptions
Source§fn clone(&self) -> SocketOptions
fn clone(&self) -> SocketOptions
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 moreimpl Copy for SocketOptions
Source§impl Debug for SocketOptions
impl Debug for SocketOptions
Source§impl Default for SocketOptions
impl Default for SocketOptions
Source§fn default() -> SocketOptions
fn default() -> SocketOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SocketOptions
impl RefUnwindSafe for SocketOptions
impl Send for SocketOptions
impl Sync for SocketOptions
impl Unpin for SocketOptions
impl UnsafeUnpin for SocketOptions
impl UnwindSafe for SocketOptions
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