pub struct Interface<'a> { /* private fields */ }Expand description
pfring version of an interface.
Implementations§
Trait Implementations§
Source§impl<'a> DynamicInterface<'a> for Interface<'a>
impl<'a> DynamicInterface<'a> for Interface<'a>
Source§fn data_link(&self) -> DataLink
fn data_link(&self) -> DataLink
Provides information about the underlying technology used for this connection.
Source§fn break_loop(&self)
fn break_loop(&self)
Breaks previously started loops.
Source§fn loop_infinite_dyn(
&self,
callback: &dyn FnMut(&BorrowedPacket<'_>),
) -> Result<(), Error>
fn loop_infinite_dyn( &self, callback: &dyn FnMut(&BorrowedPacket<'_>), ) -> Result<(), Error>
Runs infinite loop and passes received packets via callback. Read more
impl<'a> Send for Interface<'a>
Source§impl<'a> StaticInterface<'a> for Interface<'a>
impl<'a> StaticInterface<'a> for Interface<'a>
Source§fn loop_infinite<F>(&self, callback: F) -> Result<(), Error>where
F: FnMut(&BorrowedPacket<'_>),
fn loop_infinite<F>(&self, callback: F) -> Result<(), Error>where
F: FnMut(&BorrowedPacket<'_>),
Runs infinite loop and passes received packets via callback. Read more
impl<'a> Sync for Interface<'a>
Auto Trait Implementations§
impl<'a> Freeze for Interface<'a>
impl<'a> RefUnwindSafe for Interface<'a>
impl<'a> Unpin for Interface<'a>
impl<'a> UnsafeUnpin for Interface<'a>
impl<'a> UnwindSafe for Interface<'a>
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