[−][src]Struct xsk_rs::Socket
An AF_XDP socket.
More details can be found in the docs
Implementations
impl Socket<'_>
[src]
pub fn new<'a, 'umem>(
config: Config,
umem: &mut Umem<'umem>,
if_name: &'a str,
queue_id: u32
) -> Result<(TxQueue<'umem>, RxQueue<'umem>), SocketCreateError>
[src]
config: Config,
umem: &mut Umem<'umem>,
if_name: &'a str,
queue_id: u32
) -> Result<(TxQueue<'umem>, RxQueue<'umem>), SocketCreateError>
Create and bind a new AF_XDP socket to a given interface and queue id.
May require root permissions to create and bind.
Trait Implementations
Auto Trait Implementations
impl<'umem> RefUnwindSafe for Socket<'umem>
[src]
impl<'umem> Send for Socket<'umem>
[src]
impl<'umem> Sync for Socket<'umem>
[src]
impl<'umem> Unpin for Socket<'umem>
[src]
impl<'umem> UnwindSafe for Socket<'umem>
[src]
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>,