pub struct Limits {
pub max_header_bytes: usize,
pub max_body_bytes: usize,
pub read_timeout: Duration,
pub write_timeout: Duration,
pub max_connections: usize,
}Expand description
Bounds on what one connection may cost.
Fields§
§max_header_bytes: usizeRequest line plus headers.
max_body_bytes: usize§read_timeout: DurationReading the whole request, start to finish.
write_timeout: Duration§max_connections: usizeAcross every listener of one HttpServer; beyond it new connections
get a 503 instead of a thread.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
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