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 const fn web_port_explicit(&self) -> bool
pub const fn web_port_explicit(&self) -> bool
Returns whether the web-share listener port was explicitly configured.
Sourcepub const fn web_required(&self) -> bool
pub const fn web_required(&self) -> bool
Returns whether this daemon startup requires the web listener to bind.
Sourcepub fn web_frontend(&self) -> Option<&str>
pub fn web_frontend(&self) -> Option<&str>
Returns the optional external web-share frontend origin.
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.
Sourcepub const fn with_web_port(self, port: u16) -> Self
pub const fn with_web_port(self, port: u16) -> Self
Overrides the web-share listener port.
Sourcepub fn with_web_frontend(self, frontend: String) -> Self
pub fn with_web_frontend(self, frontend: String) -> Self
Overrides the frontend origin used in generated web-share URLs.
Sourcepub fn with_config_files(
self,
files: Vec<PathBuf>,
quiet: bool,
cwd: Option<PathBuf>,
) -> Self
pub fn with_config_files( self, files: Vec<PathBuf>, quiet: bool, cwd: Option<PathBuf>, ) -> Self
Enables explicit -f startup config loading.
Sourcepub const fn with_startup_ready_fd(self, ready_fd: i32) -> Self
pub const fn with_startup_ready_fd(self, ready_fd: i32) -> Self
Signals this inherited Linux eventfd after the daemon listener is bound.
Trait Implementations§
Source§impl Clone for DaemonConfig
impl Clone for DaemonConfig
Source§fn clone(&self) -> DaemonConfig
fn clone(&self) -> DaemonConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DaemonConfig
impl Debug for DaemonConfig
impl Eq for DaemonConfig
Source§impl PartialEq for DaemonConfig
impl PartialEq for DaemonConfig
Source§fn eq(&self, other: &DaemonConfig) -> bool
fn eq(&self, other: &DaemonConfig) -> bool
self and other values to be equal, and is used by ==.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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.