pub struct Timeouts {
pub connect: Option<Duration>,
pub global: Option<Duration>,
}Expand description
HTTP timeouts for downloads; None disables a bound.
Fields§
§connect: Option<Duration>Cap on establishing the connection.
global: Option<Duration>Cap on a single request, connect through transfer — applied per fetch, not across the run
(ureq’s per-call timeout_global).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Timeouts
impl RefUnwindSafe for Timeouts
impl Send for Timeouts
impl Sync for Timeouts
impl Unpin for Timeouts
impl UnsafeUnpin 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