pub struct ServerConfig {
pub threads: usize,
pub max_body: usize,
pub idle_ms: u32,
pub read_ms: u32,
pub write_ms: u32,
pub max_requests: usize,
}Fields§
§threads: usizeworker threads (connections served at once)
max_body: usizethe largest request body
idle_ms: u32how long an idle keep-alive connection stays open
read_ms: u32the longest wait for the next bytes of a request in progress; the head must be complete within it, a body must bring 1 KiB a second on average after it (MIN_BODY_RATE)
write_ms: u32§max_requests: usizerequests per connection
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
impl Copy for ServerConfig
Source§impl Debug for ServerConfig
impl Debug for ServerConfig
Auto Trait Implementations§
impl Forget for ServerConfig
impl Freeze for ServerConfig
impl Move for ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin 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