Struct xdpsock::SocketConfig [−][src]
pub struct SocketConfig { /* fields omitted */ }
Config for a Socket.
rx_queue_size
and tx_queue_size
must be powers of two.
Implementations
impl SocketConfig
[src]
impl SocketConfig
[src]pub fn new(
rx_queue_size: u32,
tx_queue_size: u32,
libbpf_flags: LibbpfFlags,
xdp_flags: XdpFlags,
bind_flags: BindFlags
) -> Result<Self, SocketConfigError>
[src]
rx_queue_size: u32,
tx_queue_size: u32,
libbpf_flags: LibbpfFlags,
xdp_flags: XdpFlags,
bind_flags: BindFlags
) -> Result<Self, SocketConfigError>
pub fn rx_queue_size(&self) -> u32
[src]
pub fn tx_queue_size(&self) -> u32
[src]
pub fn libbpf_flags(&self) -> &LibbpfFlags
[src]
pub fn xdp_flags(&self) -> &XdpFlags
[src]
pub fn bind_flags(&self) -> &BindFlags
[src]
Trait Implementations
impl Clone for SocketConfig
[src]
impl Clone for SocketConfig
[src]fn clone(&self) -> SocketConfig
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for SocketConfig
[src]
impl Default for SocketConfig
[src]impl PartialEq<SocketConfig> for SocketConfig
[src]
impl PartialEq<SocketConfig> for SocketConfig
[src]fn eq(&self, other: &SocketConfig) -> bool
[src]
fn ne(&self, other: &SocketConfig) -> bool
[src]
impl StructuralPartialEq for SocketConfig
[src]
impl StructuralPartialEq for SocketConfig
[src]Auto Trait Implementations
impl RefUnwindSafe for SocketConfig
impl RefUnwindSafe for SocketConfig
impl Send for SocketConfig
impl Send for SocketConfig
impl Sync for SocketConfig
impl Sync for SocketConfig
impl Unpin for SocketConfig
impl Unpin for SocketConfig
impl UnwindSafe for SocketConfig
impl UnwindSafe for SocketConfig