Skip to main content

ControlCommand

Enum ControlCommand 

Source
#[repr(u8)]
pub enum ControlCommand { Initialized = 0, Set = 1, Add = 2, Remove = 3, Enable = 4, Disable = 5, StatusbarMessage = 6, InformationMessage = 7, WarningMessage = 8, ErrorMessage = 9, }
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 = 0

Sent by Wireshark to indicate that this extcap has been initialized and is ready to accept packets.

§

Set = 1

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 = 2

Sent by the extcap program to add a value to the given logger or selector.

Used by control types: LoggerControl and SelectorControl.

§

Remove = 3

Sent by the extcap program to remove a value from the given selector.

Used by control types: SelectorControl.

§

Enable = 4

Sent by the extcap program to enable a given control.

Used by control types: BooleanControl, ButtonControl, SelectorControl, and StringControl.

§

Disable = 5

Sent by the extcap program to disable a given control.

Used by control types: BooleanControl, ButtonControl, SelectorControl, and StringControl.

§

StatusbarMessage = 6

Sent by the extcap program to show a message in the status bar.

§

InformationMessage = 7

Sent by the extcap program to show a message in an information dialog popup.

§

WarningMessage = 8

Sent by the extcap program to show a message in a warning dialog popup.

§

ErrorMessage = 9

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 duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for ControlCommand

Source§

impl Debug for ControlCommand

Source§

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

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

impl Eq for ControlCommand

Source§

impl<'nom> Parse<&'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 for ControlCommand

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ControlCommand

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

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 T
where T: Clone,

Source§

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 T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.