[−][src]Struct xsk_rs::SocketConfig
Config for a Socket.
rx_queue_size
and tx_queue_size
must be powers of two.
Implementations
impl Config
[src]
pub fn new(
rx_queue_size: u32,
tx_queue_size: u32,
libbpf_flags: LibbpfFlags,
xdp_flags: XdpFlags,
bind_flags: BindFlags
) -> Result<Self, ConfigError>
[src]
rx_queue_size: u32,
tx_queue_size: u32,
libbpf_flags: LibbpfFlags,
xdp_flags: XdpFlags,
bind_flags: BindFlags
) -> Result<Self, ConfigError>
pub fn default() -> Self
[src]
Default configuration based on constants set in the libbpf
library with none of the flags set.
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
Auto Trait Implementations
impl RefUnwindSafe for Config
[src]
impl Send for Config
[src]
impl Sync for Config
[src]
impl Unpin for Config
[src]
impl UnwindSafe for Config
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,