pub fn one_shot(deadline: Duration) -> Arc<Self> {
        let timer = Timer::new();
        timer.set(deadline, Duration::default());
        timer
    }
/// Create a one-shot timer.
Create a one-shot timer.
Create a one - shot timer .
pub fn one_shot(deadline: Duration) -> Arc<Self> {
        let timer = Timer::new();
        timer.set(deadline, Duration::default());
        timer
    }
pub fn one_shot ( deadline : Duration ) -> Arc < Self > { let timer = Timer :: new ( ) ; timer . set ( deadline , Duration :: default ( ) ) ; timer }
Create a one-shot timer.
Create a one - shot timer .
deadline
Duration
deadline
Duration