pub struct AgentDaemonConfig {
pub socket_path: PathBuf,
pub pid_file: Option<PathBuf>,
pub default_ttl: Option<Duration>,
}Expand description
Configuration for run.
socket_path must be on a filesystem that supports Unix domain sockets
($XDG_RUNTIME_DIR is conventional). The directory permissions are the
caller’s responsibility; the daemon will set the socket inode to 0600.
Fields§
§socket_path: PathBufPath to bind the agent socket on.
pid_file: Option<PathBuf>Optional pid-file location. If Some, the daemon writes its PID
here on startup and removes the file on shutdown.
default_ttl: Option<Duration>Default lifetime applied to added keys when the client does not
specify one via KeyConstraint::Lifetime.
Trait Implementations§
Source§impl Clone for AgentDaemonConfig
impl Clone for AgentDaemonConfig
Source§fn clone(&self) -> AgentDaemonConfig
fn clone(&self) -> AgentDaemonConfig
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 AgentDaemonConfig
impl RefUnwindSafe for AgentDaemonConfig
impl Send for AgentDaemonConfig
impl Sync for AgentDaemonConfig
impl Unpin for AgentDaemonConfig
impl UnsafeUnpin for AgentDaemonConfig
impl UnwindSafe for AgentDaemonConfig
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