pub struct Timeouts {
pub resolve: Duration,
pub connect: Duration,
pub handshake: Duration,
}Expand description
Timeouts used by the Connector.
Fields§
§resolve: DurationLocal DNS resolution (proxy host name or direct target).
connect: DurationEach TCP connection attempt (to the proxy or the target).
handshake: DurationThe whole SOCKS5 negotiation, from the greeting to the CONNECT reply.
Trait Implementations§
impl Copy for Timeouts
impl Eq for Timeouts
impl StructuralPartialEq for Timeouts
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