pub struct DaemonConfig {
pub socket_path: String,
pub tick_interval_secs: u64,
pub buffer_size: usize,
}Expand description
Configuration for running a daemon
Fields§
§socket_path: StringPath to the socket file
tick_interval_secs: u64Interval between tick calls (in seconds)
buffer_size: usizeBuffer size for IPC messages
Implementations§
Source§impl DaemonConfig
impl DaemonConfig
Sourcepub fn new(socket_path: impl Into<String>) -> Self
pub fn new(socket_path: impl Into<String>) -> Self
Create a new daemon configuration with the given socket path
Sourcepub fn with_tick_interval(self, secs: u64) -> Self
pub fn with_tick_interval(self, secs: u64) -> Self
Set the tick interval
Sourcepub fn with_buffer_size(self, size: usize) -> Self
pub fn with_buffer_size(self, size: usize) -> Self
Set the buffer size
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 · 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 DaemonConfig
impl RefUnwindSafe for DaemonConfig
impl Send for DaemonConfig
impl Sync for DaemonConfig
impl Unpin 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