pub struct Extcap<'a> { /* private fields */ }
Expand description
Exctcap representation
Implementations§
Source§impl<'a> Extcap<'a>
impl<'a> Extcap<'a>
Sourcepub fn get_step(&self) -> &ExtcapStep
pub fn get_step(&self) -> &ExtcapStep
Get current step for which it has been invoked from Wireshark
Sourcepub fn get_matches(&self) -> &ArgMatches
pub fn get_matches(&self) -> &ArgMatches
Get parsed command line arguments. Provided by clap::App
.
Sets the author string
Sourcepub fn after_help(&mut self, help: &'a str)
pub fn after_help(&mut self, help: &'a str)
Sets the after-help string
Sourcepub fn add_interface(&mut self, ifc: IFace<'a>)
pub fn add_interface(&mut self, ifc: IFace<'a>)
Adds an interface
Sourcepub fn add_control(&mut self, control: Control)
pub fn add_control(&mut self, control: Control)
Adds a control
Sourcepub fn run<T: ExtcapListener>(self, listener: T) -> ExtcapResult<()>
pub fn run<T: ExtcapListener>(self, listener: T) -> ExtcapResult<()>
Starts main capture loop
Sourcepub async fn run_async<T: ExtcapListener>(self, listener: T) -> ExtcapResult<()>
pub async fn run_async<T: ExtcapListener>(self, listener: T) -> ExtcapResult<()>
Main async capture loop
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Extcap<'a>
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§
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