Struct afxdp::socket::SocketTx [−][src]
A Tx only AF_XDP socket
Implementations
impl<'a, T: Default + Copy> SocketTx<'a, T>
[src]
pub fn try_send(
&mut self,
bufs: &mut ArrayDeque<[BufMmap<'_, T>; 4096], Wrapping>,
batch_size: usize
) -> Result<usize, SocketError>
[src]
&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.
pub fn needs_wakeup(&mut self) -> bool
[src]
Identify if this socket needs to be woken up (see AF_XDP docs).
Trait Implementations
impl<'a, T: Debug + Default + Copy> Debug for SocketTx<'a, T>
[src]
impl<'a, T: Default + Copy> Drop for SocketTx<'a, T>
[src]
impl<'a, T: Default + Copy> Send for SocketTx<'a, T>
[src]
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for SocketTx<'a, T> where
T: RefUnwindSafe,
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,
T: RefUnwindSafe,
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, 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>,