pub struct ServerConfig { /* private fields */ }Expand description
Immutable process and socket configuration shared by all object handles.
Implementations§
Source§impl ServerConfig
impl ServerConfig
Sourcepub fn executable(&self) -> &Path
pub fn executable(&self) -> &Path
Returns the configured tmux executable.
Sourcepub fn config_file(&self) -> Option<&Path>
pub fn config_file(&self) -> Option<&Path>
Returns the optional tmux configuration file.
Sourcepub const fn color_mode(&self) -> ColorMode
pub const fn color_mode(&self) -> ColorMode
Returns the requested color mode.
Sourcepub const fn environment(&self) -> &BTreeMap<OsString, OsString>
pub const fn environment(&self) -> &BTreeMap<OsString, OsString>
Returns process-environment overrides.
Sourcepub const fn clears_environment(&self) -> bool
pub const fn clears_environment(&self) -> bool
Returns whether the child environment is cleared before overrides.
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§impl Debug for ServerConfig
impl Debug for ServerConfig
impl Eq for ServerConfig
Source§impl PartialEq for ServerConfig
impl PartialEq for ServerConfig
impl StructuralPartialEq for ServerConfig
Auto Trait Implementations§
impl Freeze for ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin for ServerConfig
impl UnwindSafe for ServerConfig
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