pub struct AutoStartConfig { /* private fields */ }Expand description
Config loading policy to pass to a newly auto-started hidden daemon.
Implementations§
Source§impl AutoStartConfig
impl AutoStartConfig
Sourcepub fn default_files(quiet: bool, cwd: Option<PathBuf>) -> Self
pub fn default_files(quiet: bool, cwd: Option<PathBuf>) -> Self
Builds a policy that loads RMUX’s default startup config search path.
Sourcepub fn custom_files(
files: Vec<PathBuf>,
quiet: bool,
cwd: Option<PathBuf>,
) -> Self
pub fn custom_files( files: Vec<PathBuf>, quiet: bool, cwd: Option<PathBuf>, ) -> Self
Builds a policy that loads the explicit top-level -f files.
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 for a newly auto-started daemon.
Sourcepub fn with_web_frontend(self, frontend: String) -> Self
pub fn with_web_frontend(self, frontend: String) -> Self
Overrides the frontend origin used by newly auto-started web shares.
Sourcepub const fn with_web_required(self) -> Self
pub const fn with_web_required(self) -> Self
Requires a daemon compiled with web-share support for this autostart.
Trait Implementations§
Source§impl Clone for AutoStartConfig
impl Clone for AutoStartConfig
Source§fn clone(&self) -> AutoStartConfig
fn clone(&self) -> AutoStartConfig
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 AutoStartConfig
impl Debug for AutoStartConfig
impl Eq for AutoStartConfig
Source§impl PartialEq for AutoStartConfig
impl PartialEq for AutoStartConfig
Source§fn eq(&self, other: &AutoStartConfig) -> bool
fn eq(&self, other: &AutoStartConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AutoStartConfig
Auto Trait Implementations§
impl Freeze for AutoStartConfig
impl RefUnwindSafe for AutoStartConfig
impl Send for AutoStartConfig
impl Sync for AutoStartConfig
impl Unpin for AutoStartConfig
impl UnsafeUnpin for AutoStartConfig
impl UnwindSafe for AutoStartConfig
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