Struct DaemonConfig
pub struct DaemonConfig {
pub height: i32,
pub aspect_ratio_adjustement: f64,
pub console_color: u16,
}Expand description
Representation of the daemon subcommand configurations.
Fields§
§height: i32Height in pixel of the daemon console window.
Note: we are DPI Unaware which means the number of pixels
represents the logical scale, not the physical.
aspect_ratio_adjustement: f64Controls how the client console windows make use of the available screen space.
> 0.0- Aims for vertical rectangle shape. The larger the value, the more exaggerated the “verticality”. Eventually the windows will all be columns.= 0.0- Aims for square shape.< 0.0- Aims for horizontal rectangle shape. The smaller the value, the more exaggerated the “horizontality”. Eventually the windows will all be rows.-1.0is the sweetspot for mostly preserving a 16:9 ratio.
console_color: u16Controls back- and foreground colors of the daemon console window.
All standard windows color combinations are available:
FOREGROUND_BLUE: 1
FOREGROUND_GREEN: 2
FOREGROUND_RED: 4
FOREGROUND_INTENSITY: 8
BACKGROUND_BLUE: 16
BACKGROUND_GREEN: 32
BACKGROUND_RED: 64
BACKGROUND_INTENSITY: 128 \
§Example
White font on red background: 8 + 4 + 2 + 1 + 128 + 64 = 207
Trait Implementations§
§impl Debug for DaemonConfig
impl Debug for DaemonConfig
§impl Default for DaemonConfig
impl Default for DaemonConfig
§impl<'de> Deserialize<'de> for DaemonConfig
impl<'de> Deserialize<'de> for DaemonConfig
§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
§impl From<DaemonConfig> for DaemonConfigOpt
impl From<DaemonConfig> for DaemonConfigOpt
§fn from(val: DaemonConfig) -> Self
fn from(val: DaemonConfig) -> Self
Wraps all configuration values as options.
§impl From<DaemonConfigOpt> for DaemonConfig
impl From<DaemonConfigOpt> for DaemonConfig
§fn from(val: DaemonConfigOpt) -> Self
fn from(val: DaemonConfigOpt) -> Self
Unwraps the existing configuration values or applies the default.