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: CaptureLayersWhich layers the capture file records.
pcap_raw: boolStore 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: boolSuppress raw/decoded output for frames that are not UMSH.
idle_probe_secs: u64Verify link and radio health while the air is quiet.
no_reconnect: boolExit instead of recovering a failed BLE session.
reconnect_delay_secs: u64Seconds 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: boolDecode 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
impl CaptureArgs
pub fn validate(&self) -> Result<()>
Sourcefn has_rf_overrides(&self) -> bool
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.
fn encapsulation(&self) -> PcapEncapsulation
Trait Implementations§
Source§impl Args for CaptureArgs
impl Args for CaptureArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Debug for CaptureArgs
impl Debug for CaptureArgs
Source§impl FromArgMatches for CaptureArgs
impl FromArgMatches for CaptureArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.