pub enum CircuitBreakerDecision {
Allow,
Fallback(BoxProcessor),
Reject(CamelError),
}Expand description
Decision returned by CircuitBreakerGate::before_call.
Variants§
Allow
Circuit is closed or half-open — proceed with the pipeline call.
Fallback(BoxProcessor)
Circuit is open but a fallback processor is configured. Call this processor instead of the main pipeline.
Reject(CamelError)
Circuit is open with no fallback — reject the call.
Auto Trait Implementations§
impl !RefUnwindSafe for CircuitBreakerDecision
impl !Sync for CircuitBreakerDecision
impl !UnwindSafe for CircuitBreakerDecision
impl Freeze for CircuitBreakerDecision
impl Send for CircuitBreakerDecision
impl Unpin for CircuitBreakerDecision
impl UnsafeUnpin for CircuitBreakerDecision
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