pub struct Socket<U: Umem> { /* private fields */ }Implementations§
Source§impl<U: Umem> Socket<U>
impl<U: Umem> Socket<U>
pub fn new( dev_queue: DeviceQueue, umem: U, zero_copy: bool, rx_fill_ring_size: usize, rx_ring_size: usize, tx_completion_ring_size: usize, tx_ring_size: usize, ) -> Result<(Self, Rx<U::Frame>, Tx<U::Frame>), Error>
pub fn tx( queue: DeviceQueue, umem: U, zero_copy: bool, completion_size: usize, ring_size: usize, ) -> Result<(Self, Tx<U::Frame>), Error>
pub fn rx( queue: DeviceQueue, umem: U, zero_copy: bool, fill_size: usize, ring_size: usize, ) -> Result<(Self, Rx<U::Frame>), Error>
pub fn queue(&self) -> &DeviceQueue
pub fn umem(&mut self) -> &mut U
Trait Implementations§
Auto Trait Implementations§
impl<U> !Sync for Socket<U>
impl<U> Freeze for Socket<U>where
U: Freeze,
impl<U> RefUnwindSafe for Socket<U>where
U: RefUnwindSafe,
impl<U> Send for Socket<U>where
U: Send,
impl<U> Unpin for Socket<U>where
U: Unpin,
impl<U> UnsafeUnpin for Socket<U>where
U: UnsafeUnpin,
impl<U> UnwindSafe for Socket<U>where
U: UnwindSafe,
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