fn success(&mut self) -> Duration {
        self.backoff.reset();
        self.success_factor += self.success_mult;
        match self
            .delay
            .checked_sub(self.base_delay.div_f64(self.success_factor))
        {
            Some(v) => self.delay = v,
            None => self.delay = Duration::new(0, 0),
        }

        #[cfg(test)]
        trace!(
            "success count now {} with delay @ {:?}",
            self.success_factor,
            self.delay
        );
        self.delay
    }
/// success resets the backoff, increases success factor by the success multiplier
/// and reduces the new returned delay.
success resets the backoff, increases success factor by the success multiplier
and reduces the new returned delay.
success resets the backoff increases success factor by the success multiplier and reduces the new returned delay .
fn success(&mut self) -> Duration {
        self.backoff.reset();
        self.success_factor += self.success_mult;
        match self
            .delay
            .checked_sub(self.base_delay.div_f64(self.success_factor))
        {
            Some(v) => self.delay = v,
            None => self.delay = Duration::new(0, 0),
        }
        #[cfg(test)]
        trace!(
            "success count now {} with delay @ {:?}",
            self.success_factor,
            self.delay
        );
        self.delay
    }
fn success ( & mut self ) -> Duration { self . backoff . reset ( ) ; self . success_factor += self . success_mult ; match self . delay . checked_sub ( self . base_delay . div_f64 ( self . success_factor ) ) { Some ( v ) => self . delay = v , None => self . delay = Duration :: new ( 0 , 0 ) , } # [ cfg ( test ) ] trace ! ( " " self success_factor self delay ) ; self . delay }
success resets the backoff, increases success factor by the success multiplier
and reduces the new returned delay.
success resets the backoff increases success factor by the success multiplier and reduces the new returned delay .
&mut self
&mut self