[−][src]Struct rawsock::wpcap::Library
Instance of a opened wpcap library.
Methods
impl Library
[src]
pub fn open_interface(&self, name: &str) -> Result<Interface, Error>
[src]
pub fn dll(&self) -> &WPCapDll
[src]
Trait Implementations
impl Library for Library
[src]
fn default_paths() -> &'static [&'static str] where
Self: Sized,
[src]
Self: Sized,
fn open(path: &str) -> Result<Self, Error>
[src]
fn open_interface<'a>(
&'a self,
name: &str
) -> Result<Box<dyn DynamicInterface<'a> + 'a>, Error>
[src]
&'a self,
name: &str
) -> Result<Box<dyn DynamicInterface<'a> + 'a>, Error>
fn version(&self) -> LibraryVersion
[src]
fn all_interfaces(&self) -> Result<Vec<InterfaceDescription>, Error>
[src]
fn open_interface_arc<'a>(
&'a self,
name: &str
) -> Result<Arc<dyn DynamicInterface<'a> + 'a>, Error>
[src]
&'a self,
name: &str
) -> Result<Arc<dyn DynamicInterface<'a> + 'a>, Error>
fn open_default_paths() -> Result<Self, Error> where
Self: Sized,
[src]
Self: Sized,
Opens this library by searching for most common paths and names fro the given platform
fn open_paths<'b, T>(paths: T) -> Result<Self, Error> where
Self: Sized,
T: IntoIterator<Item = &'b str>,
[src]
Self: Sized,
T: IntoIterator<Item = &'b str>,
Opens library searching in the list of provided paths.
Auto Trait Implementations
impl Sync for Library
impl Send for Library
impl Unpin for Library
impl RefUnwindSafe for Library
impl UnwindSafe for Library
Blanket Implementations
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.
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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,