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_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.
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
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
Tests for
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.