[−][src]Struct extcap::Extcap
Exctcap representation
Methods
impl<'a> Extcap<'a>
[src]
pub fn new(name: &'a str) -> Self
[src]
Creates a new instance of an Extcap
requiring a name.
pub fn get_step(&self) -> &ExtcapStep
[src]
Get current step for which it has been invoked from Wireshark
pub fn get_matches(&self) -> &ArgMatches<'a>
[src]
Get parsed command line arguments. Provided by clap::App
.
pub fn version(&mut self, ver: &'a str)
[src]
Sets the version string
pub fn help(&mut self, helppage: &'a str)
[src]
Sets the help URI
pub fn author(&mut self, author: &'a str)
[src]
Sets the author string
pub fn about(&mut self, about: &'a str)
[src]
Sets the about string
pub fn usage(&mut self, usage: &'a str)
[src]
Sets the usage string
pub fn after_help(&mut self, help: &'a str)
[src]
Sets the after-help string
pub fn add_interface(&mut self, ifc: IFace<'a>)
[src]
Adds an interface
pub fn add_control(&mut self, control: Control)
[src]
Adds a control
pub fn run<T: ExtcapListener>(self, listener: T) -> ExtcapResult<()>
[src]
Starts main capture loop
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Extcap<'a>
impl<'a> !Send for Extcap<'a>
impl<'a> !Sync for Extcap<'a>
impl<'a> Unpin for Extcap<'a>
impl<'a> !UnwindSafe for Extcap<'a>
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,
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.
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>,