pub struct TimeoutSettings {
pub idle: u64,
pub request: u64,
pub keepalive: u64,
pub proxy_read: u64,
}Expand description
Per-connection timeout overrides ([global.timeouts]), all in seconds.
These bound how long a slow or idle peer can hold resources, which is part of the slow-loris defense.
Fields§
§idle: u64Idle connection timeout. Default 75s.
request: u64Maximum time to receive a complete request. Default 30s.
keepalive: u64Keep-alive timeout between requests on a connection. Default 75s.
proxy_read: u64Maximum time to read a response from an upstream. Default 60s.
Trait Implementations§
Source§impl Clone for TimeoutSettings
impl Clone for TimeoutSettings
Source§fn clone(&self) -> TimeoutSettings
fn clone(&self) -> TimeoutSettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimeoutSettings
impl Debug for TimeoutSettings
Source§impl Default for TimeoutSettings
impl Default for TimeoutSettings
Source§impl<'de> Deserialize<'de> for TimeoutSettings
impl<'de> Deserialize<'de> for TimeoutSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TimeoutSettings
impl RefUnwindSafe for TimeoutSettings
impl Send for TimeoutSettings
impl Sync for TimeoutSettings
impl Unpin for TimeoutSettings
impl UnsafeUnpin for TimeoutSettings
impl UnwindSafe for TimeoutSettings
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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