pub struct Timeouts {
pub connect: Option<Duration>,
pub read: Option<Duration>,
pub write: Option<Duration>,
}
Expand description
Holds the different timeouts that will be used by the Client. None means no timeout in every case.
Fields
connect: Option<Duration>
Connect timeout
read: Option<Duration>
Reply read timeout
write: Option<Duration>
Socket write timoeut
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Timeouts
impl Send for Timeouts
impl Sync for Timeouts
impl Unpin for Timeouts
impl UnwindSafe for Timeouts
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more