Expand description
Station configuration types for RF-Ham.
Configuration is the root serialisable type, stored as TOML in the user’s
XDG/platform config directory under rfham/rfham-config.toml.
| Type | Purpose |
|---|---|
Configuration | Root config: station + equipment list |
Station | Operator callsign, location, and name |
Location | Maidenhead locator, ITU region, country, postal address |
Equipment | Radio or accessory with power, bands, modes, mobility |
LocationKind | home, alternate, remote, club |
Mobility | station-fixed, portable, mobile, handheld |
Usage | Operating purpose: local, qrp, dx, emcomm, etc. |
Mode | am, fm, ssb, rtty, digital, image |
The Dump trait writes a human-readable tree to any Write sink.
§Examples
use rfham_config::Configuration;
let config = Configuration::load().unwrap_or_default();
if let Some(station) = config.station() {
println!("Callsign: {}", station.callsign());
}Modules§
- error
- Provides this crate’s
ErrorandResulttypes. - paths
- Dot-separated configuration key paths for
rfham-config.