fn from_id(id: u64, dur: Duration) -> Timer {
        Timer {
            inner: Rc::new(RefCell::new(Inner {
                id,
                is_charged: false,
                when: Instant::now() + dur,
                reactor: Rc::downgrade(&crate::executor().reactor()),
            })),
        }
    }
// Useful in generating repeat timers that have a constant
// id. Not for external usage.
Useful in generating repeat timers that have a constant
id. Not for external usage.
Useful in generating repeat timers that have a constant id . Not for external usage .
fn from_id(id: u64, dur: Duration) -> Timer {
        Timer {
            inner: Rc::new(RefCell::new(Inner {
                id,
                is_charged: false,
                when: Instant::now() + dur,
                reactor: Rc::downgrade(&crate::executor().reactor()),
            })),
        }
    }
fn from_id ( id : u64 , dur : Duration ) -> Timer { Timer { inner : Rc :: new ( RefCell :: new ( Inner { id , is_charged : false , when : Instant :: now ( ) + dur , reactor : Rc :: downgrade ( & crate :: executor ( ) . reactor ( ) ) , } ) ) , } }
Useful in generating repeat timers that have a constant
id.
Useful in generating repeat timers that have a constant id .
id
u64
dur
Duration
id
u64
dur
Duration