Home
last modified time | relevance | path

Searched refs:BootTime (Results 1 – 8 of 8) sorted by relevance

/packages/modules/DnsResolver/doh/
Dboot_time.rs38 pub struct BootTime { struct
56 impl BootTime { impl
58 pub fn now() -> BootTime { in now()
71 BootTime { d: Duration::new(t.tv_sec as u64, t.tv_nsec as u32) } in now()
76 BootTime::now().checked_duration_since(*self).unwrap() in elapsed()
81 pub fn checked_add(&self, duration: Duration) -> Option<BootTime> { in checked_add() argument
82 Some(BootTime { d: self.d.checked_add(duration)? }) in checked_add()
87 pub fn checked_duration_since(&self, earlier: BootTime) -> Option<Duration> { in checked_duration_since()
180 BootTime::now().elapsed(); in monotonic_smoke()
188 let start = BootTime::now(); in round_trip()
[all …]
Dffi.rs19 use crate::boot_time::{timeout, BootTime, Duration};
268 if let Some(expired_time) = BootTime::now().checked_add(t) { in doh_query()
/packages/modules/DnsResolver/doh/dispatcher/
Dmod.rs17 use crate::boot_time::{BootTime, Duration};
61 expired_time: BootTime,
Ddriver.rs19 use crate::boot_time::{BootTime, Duration};
90 expiry: BootTime, in query() argument
/packages/modules/DnsResolver/doh/network/
Dmod.rs19 use crate::boot_time::{BootTime, Duration};
62 pub expiry: BootTime,
Ddriver.rs19 use crate::boot_time::{timeout, BootTime, Duration};
146 let expiry = BootTime::now().checked_add(probe_timeout); in force_probe()
/packages/modules/DnsResolver/doh/connection/
Dmod.rs18 use crate::boot_time::BootTime;
200 expiry: Option<BootTime>, in query() argument
Ddriver.rs19 use crate::boot_time::BootTime;
56 pub expiry: Option<BootTime>,
328 if BootTime::now() > expiry { in handle_request()