Struct DaemonConfig
pub struct DaemonConfig {
pub height: i32,
pub aspect_ratio_adjustment: f64,
pub console_color: u16,
pub submenu_edge_behavior: EdgeBehavior,
}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_adjustment: 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
Behavior when an arrow / hjkl keystroke would move the
enable/disable submenu’s selection past the edge of the client grid.
clamp(default) - keep the current selection.wrap- wrap to the opposite edge of the same row (Left/Right) or column (Up/Down).
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.
§impl PartialEq for DaemonConfig
impl PartialEq for DaemonConfig
§impl Serialize for DaemonConfig
impl Serialize for DaemonConfig
impl StructuralPartialEq for DaemonConfig
Auto Trait Implementations§
impl Freeze for DaemonConfig
impl RefUnwindSafe for DaemonConfig
impl Send for DaemonConfig
impl Sync for DaemonConfig
impl Unpin for DaemonConfig
impl UnsafeUnpin for DaemonConfig
impl UnwindSafe for DaemonConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.