pub struct HttpServerConfig {
pub host: String,
pub port: u16,
pub max_connections: usize,
pub timeout: Duration,
}
Expand description
HTTP server configuration
Fieldsยง
ยงhost: String
ยงport: u16
ยงmax_connections: usize
ยงtimeout: Duration
Trait Implementationsยง
Sourceยงimpl Clone for HttpServerConfig
impl Clone for HttpServerConfig
Sourceยงfn clone(&self) -> HttpServerConfig
fn clone(&self) -> HttpServerConfig
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 HttpServerConfig
impl RefUnwindSafe for HttpServerConfig
impl Send for HttpServerConfig
impl Sync for HttpServerConfig
impl Unpin for HttpServerConfig
impl UnwindSafe for HttpServerConfig
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