pub struct ServerTimeouts {
pub accept_timeout: u64,
pub read_timeout: u64,
pub handler_timeout: u64,
}Expand description
HTTP server timeout configuration
Fields§
§accept_timeout: u64Socket accept timeout in seconds
read_timeout: u64Socket read timeout in seconds
handler_timeout: u64Request handler timeout in seconds
Implementations§
Trait Implementations§
Source§impl Clone for ServerTimeouts
impl Clone for ServerTimeouts
Source§fn clone(&self) -> ServerTimeouts
fn clone(&self) -> ServerTimeouts
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 ServerTimeouts
impl Debug for ServerTimeouts
Source§impl Default for ServerTimeouts
impl Default for ServerTimeouts
impl Copy for ServerTimeouts
Auto Trait Implementations§
impl Freeze for ServerTimeouts
impl RefUnwindSafe for ServerTimeouts
impl Send for ServerTimeouts
impl Sync for ServerTimeouts
impl Unpin for ServerTimeouts
impl UnwindSafe for ServerTimeouts
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