fn deadline_from_now(&self, duration: Duration) -> u64 {
        let now = self.inner.lock().clock.now();
        let duration_ms =
            core::cmp::min(duration.as_millis(), core::u64::MAX as u128) as u64;
        now.saturating_add(duration_ms)
    }
/// Returns a deadline based on the current timestamp plus the given Duration
Returns a deadline based on the current timestamp plus the given Duration
Returns a deadline based on the current timestamp plus the given Duration
fn deadline_from_now(&self, duration: Duration) -> u64 {
        let now = self.inner.lock().clock.now();
        let duration_ms =
            core::cmp::min(duration.as_millis(), core::u64::MAX as u128) as u64;
        now.saturating_add(duration_ms)
    }
fn deadline_from_now ( & self , duration : Duration ) -> u64 { let now = self . inner . lock ( ) . clock . now ( ) ; let duration_ms = core :: cmp :: min ( duration . as_millis ( ) , core :: u64 :: MAX as u128 ) as u64 ; now . saturating_add ( duration_ms ) }
Returns a deadline based on the current timestamp plus the given Duration
Returns a deadline based on the current timestamp plus the given Duration
&self
duration
Duration
&self
duration
Duration