ConfigTrait

Trait ConfigTrait 

Source
pub trait ConfigTrait: PrintSentence + Any {
    // Required methods
    fn call(&self) -> &str;
    fn as_any(&self) -> &dyn Any;
}
Expand description

Represents a config, also known as arg in an extcap sentence`, which is a UI element shown in Wireshark that allows the user to customize the capture.

Required Methods§

Source

fn call(&self) -> &str

The command line option that will be sent to this extcap program. For example, if this field is foobar, and the corresponding value is 42, then --foobar 42 will be sent to this program during the extcap capture.

Source

fn as_any(&self) -> &dyn Any

Returns this trait as an Any type.

Implementors§