pub struct DialConfig {
pub per_attempt_timeout: Duration,
pub attempt_delay: Duration,
}Expand description
Tuning for the happy-eyeballs candidate race.
Fields§
§per_attempt_timeout: DurationHard timeout for a single candidate’s connect attempt.
attempt_delay: DurationDelay before ALSO starting the next (lower-priority) candidate while the current is still in flight — RFC 8305’s “Connection Attempt Delay”. A small value (~250ms) hedges a stalled IPv6 without racing so hard that IPv4 routinely beats a viable IPv6.
Trait Implementations§
Source§impl Clone for DialConfig
impl Clone for DialConfig
Source§fn clone(&self) -> DialConfig
fn clone(&self) -> DialConfig
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 DialConfig
Source§impl Debug for DialConfig
impl Debug for DialConfig
Auto Trait Implementations§
impl Freeze for DialConfig
impl RefUnwindSafe for DialConfig
impl Send for DialConfig
impl Sync for DialConfig
impl Unpin for DialConfig
impl UnsafeUnpin for DialConfig
impl UnwindSafe for DialConfig
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