pub struct HttpServerTimeout {
pub keepalive_timeout: Option<Duration>,
pub read_header_timeout: Option<Duration>,
pub read_body_timeout: Option<Duration>,
}Expand description
Represents the timeout settings for the HTTP server.
The HttpServerTimeout struct contains three optional fields:
keepalive_timeout: The timeout for keeping the connection alive. If no byte is received within this timeout, the connection will be closed.read_header_timeout: The timeout for reading the full HTTP header.read_body_timeout: The timeout for receiving the full request body.
By default, the keepalive_timeout is set to 75 seconds, while the other two timeouts are not
set.
Fields§
§keepalive_timeout: Option<Duration>§read_header_timeout: Option<Duration>§read_body_timeout: Option<Duration>Trait Implementations§
Source§impl Clone for HttpServerTimeout
impl Clone for HttpServerTimeout
Source§fn clone(&self) -> HttpServerTimeout
fn clone(&self) -> HttpServerTimeout
Returns a duplicate of the value. Read more
1.0.0 · 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 HttpServerTimeout
impl Debug for HttpServerTimeout
Source§impl Default for HttpServerTimeout
impl Default for HttpServerTimeout
Source§impl Hash for HttpServerTimeout
impl Hash for HttpServerTimeout
Source§impl PartialEq for HttpServerTimeout
impl PartialEq for HttpServerTimeout
impl Copy for HttpServerTimeout
impl Eq for HttpServerTimeout
impl StructuralPartialEq for HttpServerTimeout
Auto Trait Implementations§
impl Freeze for HttpServerTimeout
impl RefUnwindSafe for HttpServerTimeout
impl Send for HttpServerTimeout
impl Sync for HttpServerTimeout
impl Unpin for HttpServerTimeout
impl UnwindSafe for HttpServerTimeout
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
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
Compare self to
key and return true if they are equal.