pub struct ThresholdBucketsFactory {
pub buckets: Vec<(usize, Duration)>,
pub monitoring_period: Duration,
}Fields§
§buckets: Vec<(usize, Duration)>§monitoring_period: DurationTrait Implementations§
source§impl Default for ThresholdBucketsFactory
impl Default for ThresholdBucketsFactory
source§impl StrategyFactory for ThresholdBucketsFactory
impl StrategyFactory for ThresholdBucketsFactory
type Strategy = ThresholdBucketsBackoff
fn create_strategy(&self) -> Self::Strategy
Auto Trait Implementations§
impl Freeze for ThresholdBucketsFactory
impl RefUnwindSafe for ThresholdBucketsFactory
impl Send for ThresholdBucketsFactory
impl Sync for ThresholdBucketsFactory
impl Unpin for ThresholdBucketsFactory
impl UnwindSafe for ThresholdBucketsFactory
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more