Struct crab_nat::TimeoutConfig
source · pub struct TimeoutConfig {
pub initial_timeout: Duration,
pub max_retries: usize,
pub max_retry_timeout: Option<Duration>,
}
Expand description
Configuration of the timing of UDP requests to the gateway.
Fields§
§initial_timeout: Duration
The initial timeout for the first request. In general, the timeout will be doubled on each successive retry.
max_retries: usize
The maximum number of retries to attempt before giving up. Note that the first request is not considered a retry.
max_retry_timeout: Option<Duration>
The maximum timeout to use for a retry.
Trait Implementations§
source§impl Clone for TimeoutConfig
impl Clone for TimeoutConfig
source§fn clone(&self) -> TimeoutConfig
fn clone(&self) -> TimeoutConfig
Returns a copy of the value. Read more
1.0.0 · 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 TimeoutConfig
impl Debug for TimeoutConfig
impl Copy for TimeoutConfig
Auto Trait Implementations§
impl Freeze for TimeoutConfig
impl RefUnwindSafe for TimeoutConfig
impl Send for TimeoutConfig
impl Sync for TimeoutConfig
impl Unpin for TimeoutConfig
impl UnwindSafe for TimeoutConfig
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