[][src]Struct extcap::Extcap

pub struct Extcap<'a> { /* fields omitted */ }

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

impl<'a> Default for Extcap<'a>[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.