pub struct DaemonClientConfig {
pub socket_path: String,
pub daemon_spawn: DaemonSpawnConfig,
pub startup_wait_ms: u64,
pub buffer_size: usize,
}Expand description
Configuration for the daemon client
Fields§
§socket_path: StringPath to the socket file
daemon_spawn: DaemonSpawnConfigConfiguration for spawning the daemon
startup_wait_ms: u64Time to wait after starting daemon before retrying connection (milliseconds)
buffer_size: usizeBuffer size for IPC messages
Implementations§
Source§impl DaemonClientConfig
impl DaemonClientConfig
Sourcepub fn new(
socket_path: impl Into<String>,
daemon_spawn: DaemonSpawnConfig,
) -> Self
pub fn new( socket_path: impl Into<String>, daemon_spawn: DaemonSpawnConfig, ) -> Self
Create a new daemon client configuration
Sourcepub fn with_startup_wait(self, wait_ms: u64) -> Self
pub fn with_startup_wait(self, wait_ms: u64) -> Self
Set the startup wait time
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 DaemonClientConfig
impl Clone for DaemonClientConfig
Source§fn clone(&self) -> DaemonClientConfig
fn clone(&self) -> DaemonClientConfig
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 DaemonClientConfig
impl RefUnwindSafe for DaemonClientConfig
impl Send for DaemonClientConfig
impl Sync for DaemonClientConfig
impl Unpin for DaemonClientConfig
impl UnwindSafe for DaemonClientConfig
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