pub struct TxQueue { /* private fields */ }Expand description
A transmit queue on a DPDK port
Implementations§
Source§impl TxQueue
impl TxQueue
Sourcepub fn new(
port_id: u16,
queue_id: u16,
_config: TxQueueConfig,
) -> DpdkResult<Self>
pub fn new( port_id: u16, queue_id: u16, _config: TxQueueConfig, ) -> DpdkResult<Self>
Create a new transmit queue
Sourcepub fn send_burst(&self, packets: Vec<Mbuf>) -> DpdkResult<u16>
pub fn send_burst(&self, packets: Vec<Mbuf>) -> DpdkResult<u16>
Send a burst of packets
Returns the number of packets successfully queued for transmission. Packets that are sent are consumed (freed) by DPDK.
Sourcepub fn send_burst_flush(&self, packets: Vec<Mbuf>) -> DpdkResult<u16>
pub fn send_burst_flush(&self, packets: Vec<Mbuf>) -> DpdkResult<u16>
Send packets with flush
Same as send_burst but also flushes any buffered packets
Auto Trait Implementations§
impl Freeze for TxQueue
impl RefUnwindSafe for TxQueue
impl Send for TxQueue
impl Sync for TxQueue
impl Unpin for TxQueue
impl UnsafeUnpin for TxQueue
impl UnwindSafe for TxQueue
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