#[non_exhaustive]pub enum CircuitBreakerState {
Running,
Reduced {
limit_bits_per_second: f64,
},
Ceased {
reason: CircuitBreakerReason,
at: Instant,
restart_after: Instant,
},
}Expand description
What the circuit breaker is doing with one flow.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Running
Sending normally.
Reduced
The congestion breaker tripped once and the flow was given the chance to send at a tenth
of its rate (section 4.3). If the breaker trips again after the next CB_INTERVAL
reports, the flow ceases.
Ceased
Transmission has ceased (section 4.5): the flow’s RTP is dropped.
Trait Implementations§
Source§impl Clone for CircuitBreakerState
impl Clone for CircuitBreakerState
impl Copy for CircuitBreakerState
Source§impl Debug for CircuitBreakerState
impl Debug for CircuitBreakerState
Source§impl PartialEq for CircuitBreakerState
impl PartialEq for CircuitBreakerState
impl StructuralPartialEq for CircuitBreakerState
Auto Trait Implementations§
impl Forget for CircuitBreakerState
impl Freeze for CircuitBreakerState
impl Move for CircuitBreakerState
impl RefUnwindSafe for CircuitBreakerState
impl Send for CircuitBreakerState
impl Sync for CircuitBreakerState
impl Unpin for CircuitBreakerState
impl UnsafeUnpin for CircuitBreakerState
impl UnwindSafe for CircuitBreakerState
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