Struct r_extcap::controls::RestoreButtonControl
source · pub struct RestoreButtonControl {
pub control_number: u8,
pub display: String,
pub tooltip: Option<String>,
}
Expand description
This button will restore all control values to default. The button is only enabled when not capturing.
Fields§
§control_number: u8
The control number, a unique identifier for this control.
display: String
Label of the button.
tooltip: Option<String>
Tooltip shown when hovering over the UI element.
Implementations§
source§impl RestoreButtonControl
impl RestoreButtonControl
sourcepub fn builder() -> RestoreButtonControlBuilder<((), (), ())>
pub fn builder() -> RestoreButtonControlBuilder<((), (), ())>
Create a builder for building RestoreButtonControl
.
On the builder, call .control_number(...)
, .display(...)
, .tooltip(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of RestoreButtonControl
.
Trait Implementations§
source§impl Debug for RestoreButtonControl
impl Debug for RestoreButtonControl
source§impl PrintSentence for RestoreButtonControl
impl PrintSentence for RestoreButtonControl
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 RestoreButtonControl
impl ToolbarControl for RestoreButtonControl
source§fn control_number(&self) -> u8
fn control_number(&self) -> u8
The control number, a unique identifier for this control.