Skip to main content

ClientProfile

Trait ClientProfile 

Source
pub trait ClientProfile {
    // Provided methods
    fn extra_protocols(&self) -> &[&'static str] { ... }
    fn extra_preset_buttons(&self, ui: &mut Ui, actions: &mut Vec<DeviceAction>) { ... }
    fn label_format(&self, cur_bb_format: u32) -> Option<&'static str> { ... }
    fn shows_he_stbc_field(&self) -> bool { ... }
}
Expand description

Pluggable per-deployment behavior for the client.

Every method is defaulted so the open build (and any consumer that only wants the standard behavior) can use StandardClientProfile directly.

Provided Methods§

Source

fn extra_protocols(&self) -> &[&'static str]

Additional PHY-protocol option strings appended to the core set in the protocol dropdown. Each is surfaced as crate::state::WifiProtocol::Ext and round-trips to the server verbatim.

Source

fn extra_preset_buttons(&self, ui: &mut Ui, actions: &mut Vec<DeviceAction>)

Render any extra CSI-preset buttons at the end of the CSI section.

Implementations push DeviceAction::SetCsiPreset (or any other action) into actions; the caller routes them to the selected device.

Source

fn label_format(&self, cur_bb_format: u32) -> Option<&'static str>

Map a numeric cur_bb_format to a stable data_format label for the Parquet export. None falls back to the decoded RxCsiFmt::as_str().

Source

fn shows_he_stbc_field(&self) -> bool

Whether the CSI section should surface the HE-STBC numeric field.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§