pub struct Limits {
pub max_head_bytes: usize,
pub handshake_timeout: Duration,
pub idle_timeout: Duration,
pub connect_timeout: Duration,
pub max_connections: usize,
}Expand description
Bounds on what one client can make the proxy hold.
Fields§
§max_head_bytes: usizeLargest request head, in bytes.
handshake_timeout: DurationTime allowed for the request head, and for the ClientHello after it.
idle_timeout: DurationA relayed connection with no bytes either way for this long is closed.
connect_timeout: DurationTime allowed to connect to the destination.
max_connections: usizeConnections served at once; more are answered 503 and closed. With sessions, one session (or the connections not yet authenticated) may hold at most half of them.
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