#[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

source§

fn clone(&self) -> ControlCommand

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ControlCommand

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'nom> Parse<&'nom [u8], Error<&'nom [u8]>> for ControlCommand

source§

fn parse_be(orig_i: &'nom [u8]) -> IResult<&'nom [u8], Self>

Parse input as Big-Endian
source§

fn parse_le(orig_i: &'nom [u8]) -> IResult<&'nom [u8], Self>

Parse input as Little-Endian
source§

fn parse(orig_i: &'nom [u8]) -> IResult<&'nom [u8], Self>

Parse input, not knowing the endianness Read more
source§

impl PartialEq<ControlCommand> for ControlCommand

source§

fn eq(&self, other: &ControlCommand) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for ControlCommand

source§

impl Eq for ControlCommand

source§

impl StructuralEq for ControlCommand

source§

impl StructuralPartialEq for ControlCommand

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.