pub fn reset<T: Into<Millis>>(&mut self, millis: T) {
        let millis = millis.into();
        if millis.0 != 0 {
            if let Some(ref mut hnd) = self.hnd {
                hnd.reset(millis.0 as u64);
            } else {
                self.hnd = Some(TimerHandle::new(millis.0 as u64));
            }
        } else {
            let _ = self.hnd.take();
        }
    }
/// Resets the `Deadline` instance to a new deadline.
///
/// Calling this function allows changing the instant at which the `Deadline`
/// future completes without having to create new associated state.
///
/// This function can be called both before and after the future has
/// completed.
Resets the `Deadline` instance to a new deadline.
Calling this function allows changing the instant at which the `Deadline`
future completes without having to create new associated state.

This function can be called both before and after the future has
completed.
Resets the ` Deadline ` instance to a new deadline . Calling this function allows changing the instant at which the ` Deadline ` future completes without having to create new associated state . This function can be called both before and after the future has completed .
pub fn reset<T: Into<Millis>>(&mut self, millis: T) {
        let millis = millis.into();
        if millis.0 != 0 {
            if let Some(ref mut hnd) = self.hnd {
                hnd.reset(millis.0 as u64);
            } else {
                self.hnd = Some(TimerHandle::new(millis.0 as u64));
            }
        } else {
            let _ = self.hnd.take();
        }
    }
pub fn reset < T : Into < Millis > > ( & mut self , millis : T ) { let millis = millis . into ( ) ; if millis . 0 != 0 { if let Some ( ref mut hnd ) = self . hnd { hnd . reset ( millis . 0 as u64 ) ; } else { self . hnd = Some ( TimerHandle :: new ( millis . 0 as u64 ) ) ; } } else { let _ = self . hnd . take ( ) ; } }
Resets the `Deadline` instance to a new deadline.
Resets the ` Deadline ` instance to a new deadline .
&mut self
millis
T
&mut self
millis
T