pub struct SocketTx<'a, T: Default + Copy> { /* private fields */ }Expand description
A Tx only AF_XDP socket
Implementations§
Source§impl<'a, T: Default + Copy> SocketTx<'a, T>
impl<'a, T: Default + Copy> SocketTx<'a, T>
Sourcepub fn try_send(
&mut self,
bufs: &mut ArrayDeque<[BufMmap<'_, T>; 4096], Wrapping>,
batch_size: usize,
) -> Result<usize, SocketError>
pub fn try_send( &mut self, bufs: &mut ArrayDeque<[BufMmap<'_, T>; 4096], Wrapping>, batch_size: usize, ) -> Result<usize, SocketError>
Attempt to send up to batch_size buffers on the socket.
Sourcepub fn needs_wakeup(&mut self) -> bool
pub fn needs_wakeup(&mut self) -> bool
Identify if this socket needs to be woken up (see AF_XDP docs).
Trait Implementations§
impl<'a, T: Default + Copy> Send for SocketTx<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for SocketTx<'a, T>
impl<'a, T> RefUnwindSafe for SocketTx<'a, T>where
T: RefUnwindSafe,
impl<'a, T> !Sync for SocketTx<'a, T>
impl<'a, T> Unpin for SocketTx<'a, T>
impl<'a, T> UnwindSafe for SocketTx<'a, T>where
T: RefUnwindSafe,
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