pub struct WfbStatusConfig {
pub channel: i64,
pub tx_power_dbm: Value,
pub tx_power_max_dbm: Value,
pub topology: Value,
pub mcs_index: Value,
}Expand description
The video.wfb config slice the WFB status base block seeds from. These are
configured values, not measurements: an absent file, section or key reads
the schema default the radio itself runs at (channel 149, 5/15 dBm,
host_vbus, MCS 1), so the base block never reports a channel or power the
radio is not configured for.
Fields§
§channel: i64§tx_power_dbm: Value§tx_power_max_dbm: Value§topology: Value§mcs_index: ValueImplementations§
Source§impl WfbStatusConfig
impl WfbStatusConfig
Sourcepub fn load(config_path: &Path) -> Self
pub fn load(config_path: &Path) -> Self
Load the video.wfb slice from a config path, defaulting every field when
the file / section / key is absent or unparseable. Takes the path rather
than resolving it, because the two callers resolve it differently (the
front from its pairing paths, the cloud relay from ADOS_CONFIG).
Trait Implementations§
Source§impl Clone for WfbStatusConfig
impl Clone for WfbStatusConfig
Source§impl Debug for WfbStatusConfig
impl Debug for WfbStatusConfig
Source§impl Default for WfbStatusConfig
impl Default for WfbStatusConfig
Auto Trait Implementations§
impl Freeze for WfbStatusConfig
impl RefUnwindSafe for WfbStatusConfig
impl Send for WfbStatusConfig
impl Sync for WfbStatusConfig
impl Unpin for WfbStatusConfig
impl UnsafeUnpin for WfbStatusConfig
impl UnwindSafe for WfbStatusConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more