pub struct RttConfig {
pub rto: Duration,
pub granularity: Duration,
pub rm: u32,
pub rc: u32,
}Expand description
When using unreliable transport, such as UDP, the re-transmission timeout
is calculated using the following parameters.
The RTO is an estimate of the round-trip time (RTT) and is computed as described
in RFC6298, with two exceptions.
First, the initial value for RTO SHOULD be greater than or equal to 500 ms.
Second, the value of RTO SHOULD NOT be rounded up to the nearest second. Rather,
a 1 ms accuracy SHOULD be maintained.
Fields§
§rto: DurationInitial re-transmission timeout. Default is 500 ms.
granularity: DurationThe clock granularity to use for the RTT calculation. Default is 1 ms.
rm: u32The last re-transmission multiplier. Default is 16.
rc: u32Re-transmission counter. Default is 7.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RttConfig
impl RefUnwindSafe for RttConfig
impl Send for RttConfig
impl Sync for RttConfig
impl Unpin for RttConfig
impl UnwindSafe for RttConfig
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