Enum ExtcapStep

Source
pub enum ExtcapStep<'a> {
    Interfaces(InterfacesStep),
    Dlts(DltsStep<'a>),
    Config(ConfigStep<'a>),
    ReloadConfig(ReloadConfigStep<'a>),
    Capture(CaptureStep<'a>),
}
Expand description

The step of extcap to execute, which is returned from ExtcapArgs::run. Each step has its own type which contains the relevant methods for each step. See the docs for each individual step to for details on what operations should be performed.

Variants§

§

Interfaces(InterfacesStep)

List the interfaces and toolbar controls supported by this extcap implementation in stdout for Wireshark’s consumption. Corresponds to the --extcap-interfaces argument in extcap.

See the documentation on InterfacesStep for details.

§

Dlts(DltsStep<'a>)

Prints the DLT to stdout for consumption by Wireshark. Corresponds to the --extcap-dlts argument in extcap.

See the documentation on DltsStep for details.

§

Config(ConfigStep<'a>)

List the configs available for the given interface in stdout for Wireshark’s consumption. Corresponds to the --extcap-config argument in extcap.

See the documentation on ConfigStep for details.

§

ReloadConfig(ReloadConfigStep<'a>)

Reloads the available options for a given config and prints them out for Wireshark’s consumption. The default implementation looks up config returned from configs and calls its reload function. Corresponds to the --extcap-reload-option argument in extcap.

See the documentation on ReloadConfigStep for details.

§

Capture(CaptureStep<'a>)

Corresponds to the --capture step in Wireshark. In this step, the implementation should start capturing from the external interface and write the output to the fifo given in CaptureStep::fifo.

See the documentation on CaptureStep for details.

Auto Trait Implementations§

§

impl<'a> Freeze for ExtcapStep<'a>

§

impl<'a> RefUnwindSafe for ExtcapStep<'a>

§

impl<'a> Send for ExtcapStep<'a>

§

impl<'a> Sync for ExtcapStep<'a>

§

impl<'a> Unpin for ExtcapStep<'a>

§

impl<'a> UnwindSafe for ExtcapStep<'a>

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> 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, 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.