pub struct RingConfigBuilder {
pub rx_count: u32,
pub tx_count: u32,
pub fill_count: u32,
pub completion_count: u32,
}Expand description
Builder for the rings that will be created for an XDP socket.
All fields must be a power of two, and both fill_count and completion_count
must not be zero.
rx_count OR tx_count may be zero, but not both
Fields§
§rx_count: u32The maximum number of entries in the RxRing
tx_count: u32The maximum number of entries in the TxRing or WakableTxRing
fill_count: u32The maximum number of entries in the FillRing or WakableFillRing
completion_count: u32The maximum number of entries in the CompletionRing
Implementations§
Source§impl RingConfigBuilder
impl RingConfigBuilder
Sourcepub fn build(self) -> Result<RingConfig, Error>
pub fn build(self) -> Result<RingConfig, Error>
Attempts to build a valid RingConfig
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RingConfigBuilder
impl RefUnwindSafe for RingConfigBuilder
impl Send for RingConfigBuilder
impl Sync for RingConfigBuilder
impl Unpin for RingConfigBuilder
impl UnwindSafe for RingConfigBuilder
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