pub struct ConnectRetry {
pub max_retries: u32,
pub initial_delay: Duration,
pub max_delay: Duration,
}Expand description
Retry policy for establishing an outbound TCP connection.
Fields§
§max_retries: u32Number of retries after the initial attempt.
initial_delay: DurationInitial exponential-backoff delay.
max_delay: DurationUpper bound for an individual delay.
Trait Implementations§
Source§impl Clone for ConnectRetry
impl Clone for ConnectRetry
Source§fn clone(&self) -> ConnectRetry
fn clone(&self) -> ConnectRetry
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 ConnectRetry
Source§impl Debug for ConnectRetry
impl Debug for ConnectRetry
Source§impl Default for ConnectRetry
impl Default for ConnectRetry
impl Eq for ConnectRetry
Source§impl PartialEq for ConnectRetry
impl PartialEq for ConnectRetry
impl StructuralPartialEq for ConnectRetry
Auto Trait Implementations§
impl Freeze for ConnectRetry
impl RefUnwindSafe for ConnectRetry
impl Send for ConnectRetry
impl Sync for ConnectRetry
impl Unpin for ConnectRetry
impl UnsafeUnpin for ConnectRetry
impl UnwindSafe for ConnectRetry
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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