[−][src]Struct rawsock::wpcap::Interface
wpcap specific Interface representation.
Methods
impl<'a> Interface<'a>
[src]
Trait Implementations
impl<'a> DynamicInterface<'a> for Interface<'a>
[src]
fn send(&self, packet: &[u8]) -> Result<(), Error>
[src]
fn receive<'b>(&mut self) -> Result<BorrowedPacket, Error>
[src]
fn flush(&self)
[src]
fn data_link(&self) -> DataLink
[src]
fn stats(&self) -> Result<Stats, Error>
[src]
fn break_loop(&self)
[src]
fn loop_infinite_dyn(
&self,
callback: &dyn FnMut(&BorrowedPacket)
) -> Result<(), Error>
[src]
&self,
callback: &dyn FnMut(&BorrowedPacket)
) -> Result<(), Error>
impl<'a> StaticInterface<'a> for Interface<'a>
[src]
fn loop_infinite<F>(&self, callback: F) -> Result<(), Error> where
F: FnMut(&BorrowedPacket),
[src]
F: FnMut(&BorrowedPacket),
impl<'a> Sync for Interface<'a>
[src]
impl<'a> Drop for Interface<'a>
[src]
impl<'a> Send for Interface<'a>
[src]
Auto Trait Implementations
impl<'a> Unpin for Interface<'a>
impl<'a> UnwindSafe for Interface<'a>
impl<'a> RefUnwindSafe for Interface<'a>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,