pub struct ClientTimeouts {
pub operation: Option<Duration>,
pub connect: Option<Duration>,
pub write: Option<Duration>,
pub continue_after_preview: Option<Duration>,
}Expand description
Aggregated client deadlines.
operationcaps the wholesend()call.connectcaps TCPconnect().writecaps each individual write/flush/chunk write.continue_after_previewcaps the wait for100 Continue(or an early final response) after a Preview body was sent.
TLS handshake timeouts are configured on
ClientTlsConfig.
Fields§
§operation: Option<Duration>§connect: Option<Duration>§write: Option<Duration>§continue_after_preview: Option<Duration>Implementations§
Source§impl ClientTimeouts
impl ClientTimeouts
pub const fn new() -> Self
pub const fn with_operation(self, dur: Duration) -> Self
pub const fn with_connect(self, dur: Duration) -> Self
pub const fn with_write(self, dur: Duration) -> Self
pub const fn with_continue_after_preview(self, dur: Duration) -> Self
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 moreSource§impl Debug for ClientTimeouts
impl Debug for ClientTimeouts
Source§impl Default for ClientTimeouts
impl Default for ClientTimeouts
Source§fn default() -> ClientTimeouts
fn default() -> ClientTimeouts
Returns the “default value” for a type. Read more
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