pub struct EndpointCircuitBreakerConfig {
pub failure_threshold: u32,
pub success_threshold: u32,
pub half_open_timeout_secs: u64,
}Expand description
Per-endpoint circuit breaker configuration
Fields§
§failure_threshold: u32Failure threshold for this endpoint
success_threshold: u32Success threshold for this endpoint
half_open_timeout_secs: u64Half-open timeout in seconds
Trait Implementations§
Source§impl Clone for EndpointCircuitBreakerConfig
impl Clone for EndpointCircuitBreakerConfig
Source§fn clone(&self) -> EndpointCircuitBreakerConfig
fn clone(&self) -> EndpointCircuitBreakerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EndpointCircuitBreakerConfig
impl Debug for EndpointCircuitBreakerConfig
Source§impl<'de> Deserialize<'de> for EndpointCircuitBreakerConfig
impl<'de> Deserialize<'de> for EndpointCircuitBreakerConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EndpointCircuitBreakerConfig
impl RefUnwindSafe for EndpointCircuitBreakerConfig
impl Send for EndpointCircuitBreakerConfig
impl Sync for EndpointCircuitBreakerConfig
impl Unpin for EndpointCircuitBreakerConfig
impl UnsafeUnpin for EndpointCircuitBreakerConfig
impl UnwindSafe for EndpointCircuitBreakerConfig
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