pub struct ConnectionLimits {
pub handshake: Duration,
pub first_head: Duration,
pub head: Duration,
pub idle: Duration,
pub goodbye: Duration,
pub accept_pause: Duration,
pub max: usize,
}Expand description
How long a connection may take over each step before it is closed, and how long the listener waits after it could take no connection.
Fields§
§handshake: DurationThe TLS handshake, from the connection’s start to its end.
first_head: DurationThe head of the connection’s first request, counted from the end of the handshake, on HTTP/1.1 and HTTP/2.
head: DurationThe head of each HTTP/1.1 request, from its first bytes to its end.
idle: DurationThe wait for the next request on a connection that has had one: on HTTP/1.1 between requests, on HTTP/2 while no stream is open. The connection is then told to close, with GOAWAY on HTTP/2.
goodbye: DurationHow long a connection told to close has to end before it is closed.
accept_pause: DurationThe wait after the system refused to hand over a connection, such as when the process is out of file descriptors.
max: usizeThe most connections the listener holds at once. At that number it takes no more until one ends; the system keeps those that wait.
Trait Implementations§
Source§impl Clone for ConnectionLimits
impl Clone for ConnectionLimits
impl Copy for ConnectionLimits
Source§impl Debug for ConnectionLimits
impl Debug for ConnectionLimits
Source§impl Default for ConnectionLimits
impl Default for ConnectionLimits
impl Eq for ConnectionLimits
Source§impl PartialEq for ConnectionLimits
impl PartialEq for ConnectionLimits
impl StructuralPartialEq for ConnectionLimits
Auto Trait Implementations§
impl Forget for ConnectionLimits
impl Freeze for ConnectionLimits
impl Move for ConnectionLimits
impl RefUnwindSafe for ConnectionLimits
impl Send for ConnectionLimits
impl Sync for ConnectionLimits
impl Unpin for ConnectionLimits
impl UnsafeUnpin for ConnectionLimits
impl UnwindSafe for ConnectionLimits
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more