pub struct CircuitBreakerLayer { /* private fields */ }Expand description
Tower Layer that wraps an inner service with circuit-breaker logic.
Implementations§
Source§impl CircuitBreakerLayer
impl CircuitBreakerLayer
pub fn new(config: CircuitBreakerConfig) -> Self
Trait Implementations§
Source§impl Clone for CircuitBreakerLayer
impl Clone for CircuitBreakerLayer
Source§fn clone(&self) -> CircuitBreakerLayer
fn clone(&self) -> CircuitBreakerLayer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CircuitBreakerLayer
impl RefUnwindSafe for CircuitBreakerLayer
impl Send for CircuitBreakerLayer
impl Sync for CircuitBreakerLayer
impl Unpin for CircuitBreakerLayer
impl UnsafeUnpin for CircuitBreakerLayer
impl UnwindSafe for CircuitBreakerLayer
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