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) -> ServerManagerConfig
pub fn set_pid_file(&mut self, pid_file: String) -> &mut ServerManagerConfig
pub fn set_stop_hook<F, Fut>(&mut self, f: F) -> &mut ServerManagerConfig
pub fn set_start_hook<F, Fut>(&mut self, f: F) -> &mut ServerManagerConfig
pub fn get_pid_file(&self) -> &str
pub fn get_stop_hook( &self, ) -> &Arc<dyn Fn() -> Pin<Box<dyn Future<Output = ()> + Send>> + Sync + Send>
pub fn get_start_hook( &self, ) -> &Arc<dyn Fn() -> Pin<Box<dyn Future<Output = ()> + Send>> + Sync + Send>
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 moreSource§impl Default for ServerManagerConfig
impl Default for ServerManagerConfig
Source§fn default() -> ServerManagerConfig
fn default() -> ServerManagerConfig
Returns the “default value” for a type. Read more
Auto 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