pub struct ServerConfig {
pub name: String,
pub version: String,
pub max_connections: usize,
pub request_timeout: Duration,
pub enable_logging: bool,
pub log_level: String,
pub graceful_shutdown_timeout: Duration,
}
Expand description
Server configuration
Fieldsยง
ยงname: String
ยงversion: String
ยงmax_connections: usize
ยงrequest_timeout: Duration
ยงenable_logging: bool
ยงlog_level: String
ยงgraceful_shutdown_timeout: Duration
Trait Implementationsยง
Sourceยงimpl Clone for ServerConfig
impl Clone for ServerConfig
Sourceยงfn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
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 ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnwindSafe for ServerConfig
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