pub struct ServerManagerConfig { /* private fields */ }
Expand description
Configuration parameters for server management.
Holds all necessary configuration values for server operation.
Implementations§
Source§impl ServerManagerConfig
impl ServerManagerConfig
pub fn new(pid_file: String) -> Self
pub fn set_pid_file(&mut self, pid_file: String) -> &mut Self
pub fn set_stop_hook<F, Fut>(&mut self, f: F) -> &mut Self
pub fn set_start_hook<F, Fut>(&mut self, f: F) -> &mut Self
pub fn get_pid_file(&self) -> &str
pub fn get_stop_hook(&self) -> &Hook
pub fn get_start_hook(&self) -> &Hook
Trait Implementations§
Source§impl Clone for ServerManagerConfig
impl Clone for ServerManagerConfig
Source§fn clone(&self) -> ServerManagerConfig
fn clone(&self) -> ServerManagerConfig
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 ServerManagerConfig
impl !RefUnwindSafe for ServerManagerConfig
impl Send for ServerManagerConfig
impl Sync for ServerManagerConfig
impl Unpin for ServerManagerConfig
impl !UnwindSafe for ServerManagerConfig
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