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