pub struct Config {Show 14 fields
pub node: NodeConfig,
pub interface: InterfaceConfig,
pub discovery: DiscoveryConfig,
pub mesh: MeshConfig,
pub transport: TransportConfig,
pub routing: RoutingConfig,
pub gateway: GatewayConfig,
pub relay: RelayConfig,
pub security: SecurityConfig,
pub wifi_direct: WifiDirectConfig,
pub bluetooth: BluetoothConfig,
pub bluetooth_rfcomm: BluetoothRfcommConfig,
pub messaging: MessagingConfig,
pub peers: Vec<PeerConfig>,
}Expand description
Top-level configuration loaded from the node TOML file.
Fields§
§node: NodeConfigIdentity and local state settings for this node.
interface: InterfaceConfigTUN interface settings for the mesh dataplane.
discovery: DiscoveryConfigLAN peer discovery settings.
mesh: MeshConfigOptional private-mesh membership settings. Absent or mode = "open" →
open mesh (any peer can connect; default behaviour). When configured
with mode = "private" and a passphrase, only peers that derive the
same mesh secret can complete the handshake or decrypt discovery
advertisements. See MeshConfig for the schema.
transport: TransportConfigPeer-to-peer transport settings.
routing: RoutingConfigRoute propagation and expiry settings.
gateway: GatewayConfigInternet gateway behaviour and NAT settings.
relay: RelayConfigRelay forwarding settings. When enabled this node forwards traffic for other mesh peers.
security: SecurityConfigKey material and encryption policy settings.
wifi_direct: WifiDirectConfigWi-Fi Direct (IEEE 802.11 P2P) peer discovery and group formation settings.
bluetooth: BluetoothConfigBluetooth PAN peer link monitoring and address handoff settings.
bluetooth_rfcomm: BluetoothRfcommConfigBluetooth RFCOMM direct-channel discovery and TCP bridge settings.
messaging: MessagingConfigUser-to-user encrypted messaging settings, including broadcast policy.
peers: Vec<PeerConfig>Statically configured peers. Optional — nodes can rely entirely on discovery when empty.