chrony-confile 0.1.0

A full-featured Rust library for parsing, editing, validating, and serializing chrony configuration files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Command access configuration types.
//!
//! These directives control how chrony's command interface (chronyc) is exposed, including
//! bind addresses, command port, and access control (allow/deny).

#[derive(Debug, Clone, PartialEq)]
pub struct BindCmdAddressConfig { pub address: String }

#[derive(Debug, Clone, PartialEq)]
pub struct BindCmdDeviceConfig { pub interface: String }

#[derive(Debug, Clone, PartialEq)]
pub struct CmdPortConfig { pub port: u16 }

#[derive(Debug, Clone, Default, PartialEq)]
pub struct OpenCommandsConfig { pub commands: Vec<String> }