Searched refs:BootTime (Results 1 – 8 of 8) sorted by relevance
/packages/modules/DnsResolver/doh/ |
D | boot_time.rs | 38 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 …]
|
D | ffi.rs | 19 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/ |
D | mod.rs | 17 use crate::boot_time::{BootTime, Duration}; 61 expired_time: BootTime,
|
D | driver.rs | 19 use crate::boot_time::{BootTime, Duration}; 90 expiry: BootTime, in query() argument
|
/packages/modules/DnsResolver/doh/network/ |
D | mod.rs | 19 use crate::boot_time::{BootTime, Duration}; 62 pub expiry: BootTime,
|
D | driver.rs | 19 use crate::boot_time::{timeout, BootTime, Duration}; 146 let expiry = BootTime::now().checked_add(probe_timeout); in force_probe()
|
/packages/modules/DnsResolver/doh/connection/ |
D | mod.rs | 18 use crate::boot_time::BootTime; 200 expiry: Option<BootTime>, in query() argument
|
D | driver.rs | 19 use crate::boot_time::BootTime; 56 pub expiry: Option<BootTime>, 328 if BootTime::now() > expiry { in handle_request()
|