pub struct Fd { /* private fields */ }
Expand description
A pollable AF_XDP Socket
file descriptor.
Implementations
sourceimpl Fd
impl Fd
sourcepub fn xdp_statistics(&self) -> Result<XdpStatistics>
pub fn xdp_statistics(&self) -> Result<XdpStatistics>
Returns Socket
statistics.
Trait Implementations
sourceimpl AsRawFd for Fd
impl AsRawFd for Fd
sourcefn as_raw_fd(&self) -> RawFd
fn as_raw_fd(&self) -> RawFd
The inner file descriptor.
May be required, for example, in the case where the default
libbpf program has not been loaded (using the
XSK_LIBBPF_FLAGS_INHIBIT_PROG_LOAD
flag) and the socket’s
file descriptor must be available to register it in the
XSKMAP
.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more