Enum r_extcap::controls::ControlCommand
source · #[repr(u8)]
pub enum ControlCommand {
Initialized,
Set,
Add,
Remove,
Enable,
Disable,
StatusbarMessage,
InformationMessage,
WarningMessage,
ErrorMessage,
}
Expand description
The control command for the control packet. Note that a ControlCommand
is
not valid for all control types, for example, the Remove
command is
applicable only to SelectorControls
, and Initialized
is only sent by Wireshark to this extcap program.
Variants§
Initialized
Sent by Wireshark to indicate that this extcap has been initialized and is ready to accept packets.
Set
Either sent by Wireshark to indicate that the user has interacted with one of the controls, or sent by the extcap program to change the value on a given control.
Used by control types: BooleanControl
, ButtonControl
,
LoggerControl
, SelectorControl
, and StringControl
.
Add
Sent by the extcap program to add a value to the given logger or selector.
Used by control types: LoggerControl
and SelectorControl
.
Remove
Sent by the extcap program to remove a value from the given selector.
Used by control types: SelectorControl
.
Enable
Sent by the extcap program to enable a given control.
Used by control types: BooleanControl
, ButtonControl
,
SelectorControl
, and StringControl
.
Disable
Sent by the extcap program to disable a given control.
Used by control types: BooleanControl
, ButtonControl
,
SelectorControl
, and StringControl
.
StatusbarMessage
Sent by the extcap program to show a message in the status bar.
InformationMessage
Sent by the extcap program to show a message in an information dialog popup.
WarningMessage
Sent by the extcap program to show a message in a warning dialog popup.
ErrorMessage
Sent by the extcap program to show a message in an error dialog popup.
Trait Implementations§
source§impl Clone for ControlCommand
impl Clone for ControlCommand
source§fn clone(&self) -> ControlCommand
fn clone(&self) -> ControlCommand
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ControlCommand
impl Debug for ControlCommand
source§impl PartialEq<ControlCommand> for ControlCommand
impl PartialEq<ControlCommand> for ControlCommand
source§fn eq(&self, other: &ControlCommand) -> bool
fn eq(&self, other: &ControlCommand) -> bool
self
and other
values to be equal, and is used
by ==
.