/// Skip current time forward by `duration`, triggering all timers until
/// then, inclusive.
///
/// Returns the number of timers triggered.
Skip current time forward by `duration`, triggering all timers until
then, inclusive.

Returns the number of timers triggered.
Skip current time forward by ` duration ` triggering all timers until then inclusive . Returns the number of timers triggered .
fn trigger_timers_for(&mut self, duration: Duration) -> usize {
            let instant = self.as_mut().now() + duration;
            // We know the call to `self.trigger_timers_until_instant` will not
            // panic because we provide an instant that is greater than or equal
            // to the current time.
            self.trigger_timers_until_instant(instant)
        }
fn trigger_timers_for ( & mut self , duration : Duration ) -> usize { let instant = self . as_mut ( ) . now ( ) + duration ; // We know the call to `self.trigger_timers_until_instant` will not // panic because we provide an instant that is greater than or equal // to the current time. self . trigger_timers_until_instant ( instant ) }
Skip current time forward by `duration`, triggering all timers until
then, inclusive.
Skip current time forward by ` duration ` triggering all timers until then inclusive .
&mut self
duration
Duration