Skip to main content

chrony_confile/ast/
cmd.rs

1//! Command access configuration types.
2//!
3//! These directives control how chrony's command interface (chronyc) is exposed, including
4//! bind addresses, command port, and access control (allow/deny).
5
6#[derive(Debug, Clone, PartialEq)]
7pub struct BindCmdAddressConfig { pub address: String }
8
9#[derive(Debug, Clone, PartialEq)]
10pub struct BindCmdDeviceConfig { pub interface: String }
11
12#[derive(Debug, Clone, PartialEq)]
13pub struct CmdPortConfig { pub port: u16 }
14
15#[derive(Debug, Clone, Default, PartialEq)]
16pub struct OpenCommandsConfig { pub commands: Vec<String> }