pub struct AdapterProfile {
pub adapter_kind: AdapterKind,
pub chip: Option<String>,
pub firmware_version: Option<String>,
pub driver_version: Option<String>,
pub supported_channels: Vec<u16>,
pub supported_bandwidths_mhz: Vec<u16>,
pub expected_subcarrier_counts: Vec<u16>,
pub supports_live_capture: bool,
pub supports_injection: bool,
pub supports_monitor_mode: bool,
}Expand description
Capability descriptor for a source — used by validation to bound frames and by health checks to flag unsupported firmware/driver state.
Fields§
§adapter_kind: AdapterKindAdapter family.
chip: Option<String>Radio chip, if known ("BCM43455c0", "ESP32-S3", …).
firmware_version: Option<String>Firmware version string, if known.
driver_version: Option<String>Driver version string, if known.
supported_channels: Vec<u16>Channels the source can capture on.
supported_bandwidths_mhz: Vec<u16>Bandwidths (MHz) the source supports.
expected_subcarrier_counts: Vec<u16>Subcarrier counts the source is expected to emit (e.g. [52, 56, 114, 234]).
supports_live_capture: boolWhether live capture is possible (false for files/replay).
supports_injection: boolWhether frame injection is possible.
supports_monitor_mode: boolWhether monitor mode is available.
Implementations§
Source§impl AdapterProfile
impl AdapterProfile
Sourcepub fn offline(adapter_kind: AdapterKind) -> Self
pub fn offline(adapter_kind: AdapterKind) -> Self
A permissive profile for file/replay/synthetic sources: any channel, any bandwidth, any subcarrier count, no live capabilities.
Sourcepub fn esp32_default() -> Self
pub fn esp32_default() -> Self
A typical ESP32-S3 HT20 CSI profile (192 raw subcarriers on HT40, 64 on HT20 — both listed; channels 1–13, 2.4 GHz).
Sourcepub fn nexmon_default() -> Self
pub fn nexmon_default() -> Self
A typical Nexmon (BCM43455c0) CSI profile: 802.11ac, 20/40/80 MHz.
Sourcepub fn accepts_subcarrier_count(&self, count: u16) -> bool
pub fn accepts_subcarrier_count(&self, count: u16) -> bool
true if count is acceptable for this profile (always true when the
expected list is empty, e.g. offline sources).
Sourcepub fn accepts_channel(&self, channel: u16) -> bool
pub fn accepts_channel(&self, channel: u16) -> bool
true if channel is acceptable (always true when the list is empty).
Trait Implementations§
Source§impl Clone for AdapterProfile
impl Clone for AdapterProfile
Source§fn clone(&self) -> AdapterProfile
fn clone(&self) -> AdapterProfile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AdapterProfile
impl Debug for AdapterProfile
Source§impl<'de> Deserialize<'de> for AdapterProfile
impl<'de> Deserialize<'de> for AdapterProfile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for AdapterProfile
impl PartialEq for AdapterProfile
Source§fn eq(&self, other: &AdapterProfile) -> bool
fn eq(&self, other: &AdapterProfile) -> bool
self and other values to be equal, and is used by ==.