umsh_cli/
settings.rs

1//! CLI-local preferences mutated via `/set`. Reset on binary exit — no
2//! durable storage.
3
4#[derive(Debug, Clone)]
5pub struct SessionSettings {
6    /// `FHOPS_REM` value applied to all CLI-issued sends. `0..=15`.
7    pub flood_hops: u8,
8    /// Whether unicast sends use the ack-requested packet type.
9    pub ack_requested: bool,
10    /// Display-only: print raw bytes alongside decoded lines.
11    pub show_hex: bool,
12    /// Display-only: log every TX/RX MAC frame as `tx`/`rx` hex lines.
13    pub show_raw: bool,
14}
15
16impl Default for SessionSettings {
17    fn default() -> Self {
18        SessionSettings {
19            flood_hops: 5,
20            ack_requested: true,
21            show_hex: false,
22            show_raw: false,
23        }
24    }
25}