pub struct Limits {
pub max_header_bytes: usize,
pub max_body_bytes: usize,
pub keep_alive_timeout: Duration,
pub header_timeout: Duration,
}Expand description
Guard rails applied to every connection.
Fields§
§max_header_bytes: usize§max_body_bytes: usize§keep_alive_timeout: DurationHow long an idle keep-alive connection is held open.
header_timeout: DurationHow long the headers of a single request may take to arrive.
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