Skip to main content

Crate rfham_config

Crate rfham_config 

Source
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.

TypePurpose
ConfigurationRoot config: station + equipment list
StationOperator callsign, location, and name
LocationMaidenhead locator, ITU region, country, postal address
EquipmentRadio or accessory with power, bands, modes, mobility
LocationKindhome, alternate, remote, club
Mobilitystation-fixed, portable, mobile, handheld
UsageOperating purpose: local, qrp, dx, emcomm, etc.
Modeam, 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 Error and Result types.
paths
Dot-separated configuration key paths for rfham-config.

Structs§

Configuration
Equipment
Location
Station

Enums§

LocationKind
Mobility
Mode
Usage

Constants§

CONFIG_DIR_NAME
CONFIG_FILE_NAME

Traits§

Dump