pub struct ClientTimeouts {
pub connect: Duration,
pub total: Duration,
}Expand description
The floor every outbound HTTP client in the workspace gets.
Two clients were built with a bare reqwest::Client::new() and therefore had
no timeouts at all: webhook delivery (so an endpoint that accepts a
connection and never answers hung that delivery forever) and the package
registry. Client::new() is an easy default to reach for and a bad one for
anything talking to a host we do not control.
Values are deliberately generous - this is a floor to stop a hang, not a performance budget. A caller with a real reason for different numbers builds its own client and says why, as the provider and MCP transports do.
Fields§
§connect: DurationCap on establishing the TCP+TLS connection.
total: DurationCap on the whole request/response.
Trait Implementations§
Source§impl Clone for ClientTimeouts
impl Clone for ClientTimeouts
Source§fn clone(&self) -> ClientTimeouts
fn clone(&self) -> ClientTimeouts
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 moreimpl Copy for ClientTimeouts
Source§impl Debug for ClientTimeouts
impl Debug for ClientTimeouts
Auto Trait Implementations§
impl Freeze for ClientTimeouts
impl RefUnwindSafe for ClientTimeouts
impl Send for ClientTimeouts
impl Sync for ClientTimeouts
impl Unpin for ClientTimeouts
impl UnsafeUnpin for ClientTimeouts
impl UnwindSafe for ClientTimeouts
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