CaptureArgs

Struct CaptureArgs 

Source
pub struct CaptureArgs {
Show 15 fields pub pcap: Option<PathBuf>, pub layers: CaptureLayers, pub pcap_raw: bool, pub pcap_linktype: Option<u32>, pub umsh_only: bool, pub idle_probe_secs: u64, pub no_reconnect: bool, pub reconnect_delay_secs: u64, pub freq_khz: Option<u32>, pub bw_hz: Option<u32>, pub sf: Option<u8>, pub cr: Option<u8>, pub sync_word: Option<HexU16Arg>, pub tx_power: Option<i8>, pub quiet: bool,
}

Fields§

§pcap: Option<PathBuf>

Write a Wireshark-compatible capture here.

§layers: CaptureLayers

Which layers the capture file records.

§pcap_raw: bool

Store exact raw LoRa frames instead of the synthetic Ethernet/IPv4/UDP encapsulation (radio layer only).

§pcap_linktype: Option<u32>

pcap LINKTYPE value required by –pcap-raw.

§umsh_only: bool

Suppress raw/decoded output for frames that are not UMSH.

§idle_probe_secs: u64

Verify link and radio health while the air is quiet.

§no_reconnect: bool

Exit instead of recovering a failed BLE session.

§reconnect_delay_secs: u64

Seconds to wait before rediscovering after a failed session.

§freq_khz: Option<u32>

Set the frequency in kHz for this session.

§bw_hz: Option<u32>

Set the LoRa bandwidth in Hz for this session.

§sf: Option<u8>

Set the LoRa spreading factor for this session.

§cr: Option<u8>

Set the LoRa coding-rate denominator for this session.

§sync_word: Option<HexU16Arg>

Set the LoRa sync word for this session.

§tx_power: Option<i8>

Set the transmit power in dBm for this session.

§quiet: bool

Decode nothing for a human: whatever reads the capture dissects it itself.

Not a command-line flag — it belongs to the extcap interface, where Wireshark is the consumer. Narrating each frame there would decode every packet twice and fill Wireshark’s log with output that reads like dissection but is not.

Implementations§

Source§

impl CaptureArgs

Source

pub fn validate(&self) -> Result<()>

Source

fn has_rf_overrides(&self) -> bool

Whether the user asked for a specific RF configuration rather than accepting the one the device is already running.

Source

fn encapsulation(&self) -> PcapEncapsulation

Trait Implementations§

Source§

impl Args for CaptureArgs

Source§

fn group_id() -> Option<Id>

Report the ArgGroup::id for this set of arguments
Source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

impl Debug for CaptureArgs

Source§

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

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

impl FromArgMatches for CaptureArgs

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.

Auto Trait Implementations§

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

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> Same for T

Source§

type Output = T

Should always be Self
§

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.
Source§

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