pub struct DaemonRunConfig {
pub socket_path: PathBuf,
pub bridge_config: BridgeConfig,
pub bridge_token_file: Option<PathBuf>,
pub bridge_token_path: PathBuf,
}Expand description
Everything daemon run needs to start the daemon, resolved from the CLI.
Shared by the headless path (run_headless) and the macOS menu-bar path
(tray::run) so both start an identical daemon. The latter is a plain code
span, not an intra-doc link, because the tray module is feature- and
target-gated and absent from the docs build.
Fields§
§socket_path: PathBufControl-socket path (also the single-instance lock).
bridge_config: BridgeConfigBrowser-bridge configuration (ports, allow-origin, limits).
bridge_token_file: Option<PathBuf>Optional file the bridge session token is read from instead of generated.
bridge_token_path: PathBufWhere the resolved bridge token is persisted (0600) for thin clients.
Trait Implementations§
Source§impl Clone for DaemonRunConfig
impl Clone for DaemonRunConfig
Source§fn clone(&self) -> DaemonRunConfig
fn clone(&self) -> DaemonRunConfig
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 moreAuto Trait Implementations§
impl Freeze for DaemonRunConfig
impl RefUnwindSafe for DaemonRunConfig
impl Send for DaemonRunConfig
impl Sync for DaemonRunConfig
impl Unpin for DaemonRunConfig
impl UnsafeUnpin for DaemonRunConfig
impl UnwindSafe for DaemonRunConfig
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