pub fn new(count: usize, duration: Duration) -> CircuitBreaker {
        CircuitBreaker {
            count,
            duration,
            trips: vec![],
        }
    }
/// construct a new circuit breaker which trips if more than `count` retries happen in
/// a period of less than `duration`
construct a new circuit breaker which trips if more than `count` retries happen in
a period of less than `duration`
construct a new circuit breaker which trips if more than ` count ` retries happen in a period of less than ` duration `
pub fn new(count: usize, duration: Duration) -> CircuitBreaker {
        CircuitBreaker {
            count,
            duration,
            trips: vec![],
        }
    }
pub fn new ( count : usize , duration : Duration ) -> CircuitBreaker { CircuitBreaker { count , duration , trips : vec ! [ ] , } }
construct a new circuit breaker which trips if more than `count` retries happen in
a period of less than `duration`
construct a new circuit breaker which trips if more than ` count ` retries happen in a period of less than ` duration `
count
usize
duration
Duration