Struct rxdp::XDPProgram [−][src]
Convenience wrapper around an XDP program
Implementations
impl XDPProgram
[src]
pub fn fd(&self) -> i32
[src]
Returns the file descriptor for this program.
pub fn attach_to_interface(
&self,
interface_name: &str,
flags: AttachFlags
) -> XDPResult<()>
[src]
&self,
interface_name: &str,
flags: AttachFlags
) -> XDPResult<()>
Attaches the XDP program to an interface
pub fn detach(&self, interface_name: &str) -> XDPResult<()>
[src]
Detaches the XDP program from an interface
Auto Trait Implementations
impl !RefUnwindSafe for XDPProgram
impl !Send for XDPProgram
impl !Sync for XDPProgram
impl Unpin for XDPProgram
impl UnwindSafe for XDPProgram
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>,