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.
Auto Trait Implementations§
impl Freeze for LoggerControl
impl RefUnwindSafe for LoggerControl
impl Send for LoggerControl
impl Sync for LoggerControl
impl Unpin for LoggerControl
impl UnwindSafe for LoggerControl
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