pub trait ToolbarControl: PrintSentence {
// Required method
fn control_number(&self) -> u8;
}
Expand description
Controls provided by this extcap utility to use in a toolbar in the UI. These controls are bidirectional and can be used to control the extcap utility while capturing.
This is useful in scenarios where configuration can be done based on findings in the capture process, setting temporary values or give other inputs without restarting the current capture.
Communication from the extcap program to Wireshark is done through methods
on these controls like set_enabled
or set_value
, and the implementations
will create a corresponding control packet that can be sent to Wireshark
through ControlPacket::send
or ControlPacket::send_async
.
All controls will be presented as GUI elements in a toolbar specific to the extcap utility. The extcap must not rely on using those controls (they are optional) because of other capturing tools not using GUI (e.g. tshark, tfshark).
Required Methods§
Sourcefn control_number(&self) -> u8
fn control_number(&self) -> u8
The control number, a unique identifier for this control.