pub struct Config {
pub error_threshold: i32,
pub error_threshold_percentage: i32,
pub buckets_in_window: u32,
pub bucket_size_in_ms: u64,
pub circuit_open_ms: u64,
pub circuit_breaker_enabled: bool,
}
Fields
error_threshold: i32
error_threshold_percentage: i32
buckets_in_window: u32
bucket_size_in_ms: u64
circuit_open_ms: u64
circuit_breaker_enabled: bool
Implementations
sourceimpl Config
impl Config
pub fn default() -> Config
pub fn error_threshold(&mut self, error_threshold: i32) -> &mut Self
pub fn error_threshold_percentage(
&mut self,
error_threshold_percentage: i32
) -> &mut Self
pub fn buckets_in_window(&mut self, buckets_in_window: u32) -> &mut Self
pub fn bucket_size_in_ms(&mut self, bucket_size_in_ms: u64) -> &mut Self
pub fn circuit_open_ms(&mut self, circuit_open_ms: u64) -> &mut Self
pub fn circuit_breaker_enabled(
&mut self,
circuit_breaker_enabled: bool
) -> &mut Self
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more