pub struct Timeouts {
pub global: Option<Duration>,
pub per_call: Option<Duration>,
pub resolve: Option<Duration>,
pub connect: Option<Duration>,
pub send_request: Option<Duration>,
pub await_100: Option<Duration>,
pub send_body: Option<Duration>,
pub recv_response: Option<Duration>,
pub recv_body: Option<Duration>,
}Expand description
Request timeout configuration.
This can be configured both on Agent level as well as per request.
Fields§
§global: Option<Duration>Timeout for the entire call
per_call: Option<Duration>Timeout for call-by-call when following redirects
resolve: Option<Duration>Max duration for doing the DNS lookup when establishing the connection
connect: Option<Duration>Max duration for establishing the connection
send_request: Option<Duration>Max duration for sending the request, but not the request body.
await_100: Option<Duration>Max duration for awaiting a 100-continue response.
send_body: Option<Duration>Max duration for sending a request body (if there is one)
recv_response: Option<Duration>Max duration for receiving the response headers, but not the body
recv_body: Option<Duration>Max duration for receving the response body.
Trait Implementations§
impl Copy for Timeouts
Auto Trait Implementations§
impl Freeze for Timeouts
impl RefUnwindSafe for Timeouts
impl Send for Timeouts
impl Sync for Timeouts
impl Unpin for Timeouts
impl UnwindSafe for Timeouts
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