Lines Matching refs:Duration
14 use crate::time::{Duration, Instant};
130 fn retransmission_timeout(&self) -> Duration { in retransmission_timeout() argument
133 Duration::from_millis(ms as u64) in retransmission_timeout()
211 delay: Duration,
219 const ACK_DELAY_DEFAULT: Duration = Duration::from_millis(10);
220 const CLOSE_DELAY: Duration = Duration::from_millis(10_000);
238 fn should_retransmit(&self, timestamp: Instant) -> Option<Duration> { in should_retransmit() argument
243 Timer::FastRetransmit => Some(Duration::from_millis(0)), in should_retransmit()
269 fn set_for_idle(&mut self, timestamp: Instant, interval: Option<Duration>) { in set_for_idle() argument
283 fn rewind_keep_alive(&mut self, timestamp: Instant, interval: Option<Duration>) { in rewind_keep_alive() argument
289 fn set_for_retransmit(&mut self, timestamp: Instant, delay: Duration) { in set_for_retransmit() argument
362 timeout: Option<Duration>,
364 keep_alive: Option<Duration>,
409 ack_delay: Option<Duration>,
524 pub fn timeout(&self) -> Option<Duration> { in timeout() argument
531 pub fn ack_delay(&self) -> Option<Duration> { in ack_delay() argument
565 pub fn set_timeout(&mut self, duration: Option<Duration>) { in set_timeout() argument
572 pub fn set_ack_delay(&mut self, duration: Option<Duration>) { in set_ack_delay() argument
595 pub fn keep_alive(&self) -> Option<Duration> { in keep_alive() argument
611 pub fn set_keep_alive(&mut self, interval: Option<Duration>) { in set_keep_alive() argument
1276 self.challenge_ack_timer = cx.now() + Duration::from_secs(1); in challenge_ack_reply()
6025 s.set_timeout(Some(Duration::from_millis(100))); in test_listen_timeout()
6036 s.set_timeout(Some(Duration::from_millis(100))); in test_connect_timeout()
6064 s.set_timeout(Some(Duration::from_millis(1000))); in test_established_timeout()
6104 s.set_keep_alive(Some(Duration::from_millis(50))); in test_established_keep_alive_timeout()
6105 s.set_timeout(Some(Duration::from_millis(100))); in test_established_keep_alive_timeout()
6151 s.set_timeout(Some(Duration::from_millis(1000))); in test_fin_wait_1_timeout()
6170 s.set_timeout(Some(Duration::from_millis(1000))); in test_last_ack_timeout()
6189 s.set_timeout(Some(Duration::from_millis(200))); in test_closed_timeout()
6227 s.set_keep_alive(Some(Duration::from_millis(100))); in test_sends_keep_alive()
6963 const RTO: Duration = Duration::from_millis(100); in test_timer_retransmit()
6971 Some(Duration::from_millis(101)) in test_timer_retransmit()
6979 Some(Duration::from_millis(300)) in test_timer_retransmit()
6996 assert_eq!(r.retransmission_timeout(), Duration::from_millis(rto)); in test_rtt_estimator()