pub struct DaemonConfig { /* private fields */ }Expand description
Daemon configuration for a single RMUX server instance.
Implementations§
Source§impl DaemonConfig
impl DaemonConfig
Sourcepub fn new(socket_path: PathBuf) -> Self
pub fn new(socket_path: PathBuf) -> Self
Builds a daemon configuration for the given socket path.
Sourcepub fn with_default_socket_path() -> Result<Self>
pub fn with_default_socket_path() -> Result<Self>
Builds a daemon configuration using the default spec socket path.
Sourcepub fn socket_path(&self) -> &Path
pub fn socket_path(&self) -> &Path
Returns the configured local IPC endpoint path.
Sourcepub const fn config_load(&self) -> &ConfigLoadOptions
pub const fn config_load(&self) -> &ConfigLoadOptions
Returns the startup config loading policy.
Sourcepub fn subscription_limits(&self) -> SubscriptionLimits
pub fn subscription_limits(&self) -> SubscriptionLimits
Returns the pane-output subscription limits.
Sourcepub fn with_default_config_load(self, quiet: bool, cwd: Option<PathBuf>) -> Self
pub fn with_default_config_load(self, quiet: bool, cwd: Option<PathBuf>) -> Self
Enables RMUX default startup config loading.
Sourcepub fn with_subscription_limits(
self,
subscription_limits: SubscriptionLimits,
) -> Self
pub fn with_subscription_limits( self, subscription_limits: SubscriptionLimits, ) -> Self
Overrides pane-output subscription limits for this daemon.
Trait Implementations§
Source§impl Clone for DaemonConfig
impl Clone for DaemonConfig
Source§fn clone(&self) -> DaemonConfig
fn clone(&self) -> DaemonConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DaemonConfig
impl Debug for DaemonConfig
Source§impl PartialEq for DaemonConfig
impl PartialEq for DaemonConfig
Source§fn eq(&self, other: &DaemonConfig) -> bool
fn eq(&self, other: &DaemonConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq 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
Mutably borrows from an owned value. Read more