#[non_exhaustive]pub struct HttpTimeouts {
pub connect: Duration,
pub response_headers: Duration,
pub read_idle: Option<Duration>,
}Expand description
Connect / header / body-idle deadlines for one input.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.connect: DurationTCP + TLS connect budget. Applied at
crate::http_input::HttpClientBuilder::build to the reqwest client;
crate::http_input::HttpInputBuilder::timeouts cannot change it.
response_headers: DurationBudget from request start until response headers.
read_idle: Option<Duration>Reset after every body chunk. None means no idle limit.
Trait Implementations§
Source§impl Clone for HttpTimeouts
impl Clone for HttpTimeouts
Source§fn clone(&self) -> HttpTimeouts
fn clone(&self) -> HttpTimeouts
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 HttpTimeouts
impl Debug for HttpTimeouts
Auto Trait Implementations§
impl Freeze for HttpTimeouts
impl RefUnwindSafe for HttpTimeouts
impl Send for HttpTimeouts
impl Sync for HttpTimeouts
impl Unpin for HttpTimeouts
impl UnsafeUnpin for HttpTimeouts
impl UnwindSafe for HttpTimeouts
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