pub struct PrtConfig {
pub known_ports: HashMap<u16, String>,
pub alerts: Vec<AlertRuleConfig>,
}Expand description
Top-level configuration.
Fields§
§known_ports: HashMap<u16, String>User-defined port → service name overrides. These take precedence over the built-in known ports database.
[known_ports]
9090 = "prometheus"
3000 = "grafana"alerts: Vec<AlertRuleConfig>Alert rules (populated by the alerts feature).
[[alerts]]
port = 22
action = "bell"Trait Implementations§
Auto Trait Implementations§
impl Freeze for PrtConfig
impl RefUnwindSafe for PrtConfig
impl Send for PrtConfig
impl Sync for PrtConfig
impl Unpin for PrtConfig
impl UnsafeUnpin for PrtConfig
impl UnwindSafe for PrtConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more