Struct r_extcap::controls::LoggerControl
source · pub struct LoggerControl {
pub control_number: u8,
pub display: String,
pub tooltip: Option<String>,
}
Expand description
A logger mechanism where the extcap utility can send log entries to be presented in a log window. This communication is unidirectional from this extcap program to Wireshark.
A button will be displayed in the toolbar which will open the log window when clicked.
Fields§
§control_number: u8
The control number, a unique identifier for this control.
display: String
Label of the button that opens the log window.
tooltip: Option<String>
Tooltip shown when hovering over the UI element.
Implementations§
source§impl LoggerControl
impl LoggerControl
source§impl LoggerControl
impl LoggerControl
sourcepub fn clear_and_add_log<'a>(&self, log: Cow<'a, str>) -> ControlPacket<'a>
pub fn clear_and_add_log<'a>(&self, log: Cow<'a, str>) -> ControlPacket<'a>
Clear the log and add the given log the entry to the window.
sourcepub fn add_log<'a>(&self, log: Cow<'a, str>) -> ControlPacket<'a>
pub fn add_log<'a>(&self, log: Cow<'a, str>) -> ControlPacket<'a>
Add the log entry to the log window.
Trait Implementations§
source§impl Debug for LoggerControl
impl Debug for LoggerControl
source§impl PrintSentence for LoggerControl
impl PrintSentence for LoggerControl
source§fn format_sentence(&self, f: &mut Formatter<'_>) -> Result
fn format_sentence(&self, f: &mut Formatter<'_>) -> Result
The extcap interface expects certain output “sentences” to stdout to
communicate with Wireshark, like Read more
source§fn print_sentence(&self)
fn print_sentence(&self)
Prints the extcap sentence to stdout.
source§impl ToolbarControl for LoggerControl
impl ToolbarControl for LoggerControl
source§fn control_number(&self) -> u8
fn control_number(&self) -> u8
The control number, a unique identifier for this control.