pub struct DaemonOptions {
pub token: Option<String>,
pub max_conns: Option<usize>,
}Expand description
Options for run_daemon.
Fields§
§token: Option<String>Shared token. When Some, cast frames must carry a matching token and
bare InjectionCommand lines are rejected. When None, both are accepted
(loopback / local-trust mode).
max_conns: Option<usize>Stop accepting after this many connections (for tests); None = forever.
Trait Implementations§
Source§impl Clone for DaemonOptions
impl Clone for DaemonOptions
Source§fn clone(&self) -> DaemonOptions
fn clone(&self) -> DaemonOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 DaemonOptions
impl RefUnwindSafe for DaemonOptions
impl Send for DaemonOptions
impl Sync for DaemonOptions
impl Unpin for DaemonOptions
impl UnsafeUnpin for DaemonOptions
impl UnwindSafe for DaemonOptions
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