pub enum FallbackEvent {
Success {
pattern_name: String,
timestamp: Instant,
},
FailedAttempt {
pattern_name: String,
timestamp: Instant,
},
Applied {
pattern_name: String,
timestamp: Instant,
strategy: &'static str,
},
Failed {
pattern_name: String,
timestamp: Instant,
},
Skipped {
pattern_name: String,
timestamp: Instant,
},
}Expand description
Events emitted by the fallback service.
Variants§
Success
The inner service succeeded; no fallback was needed.
Fields
FailedAttempt
The inner service failed; fallback will be attempted.
Fields
Applied
The fallback was successfully applied.
Fields
Failed
The fallback itself failed (only possible with service fallback).
Fields
Skipped
The error didn’t match the predicate; propagated as-is.
Trait Implementations§
Source§impl Clone for FallbackEvent
impl Clone for FallbackEvent
Source§fn clone(&self) -> FallbackEvent
fn clone(&self) -> FallbackEvent
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 moreSource§impl Debug for FallbackEvent
impl Debug for FallbackEvent
Source§impl ResilienceEvent for FallbackEvent
impl ResilienceEvent for FallbackEvent
Auto Trait Implementations§
impl Freeze for FallbackEvent
impl RefUnwindSafe for FallbackEvent
impl Send for FallbackEvent
impl Sync for FallbackEvent
impl Unpin for FallbackEvent
impl UnsafeUnpin for FallbackEvent
impl UnwindSafe for FallbackEvent
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