pub struct SweepResult {
pub outcome: Result<Response, IntelError>,
pub failover: Option<(usize, usize)>,
pub breaker_changes: Vec<(usize, BreakerTransition)>,
pub active_change: Option<usize>,
pub served_by: Option<usize>,
}Expand description
The result of one failover sweep, plus the side-channel of breaker and
active-endpoint transitions. The sweep observes these but emits nothing
itself; the caller turns them into metrics, events and the
agentd://intelligence body, which keeps this module free of observability
dependencies.
Fields§
§outcome: Result<Response, IntelError>§failover: Option<(usize, usize)>(from, to) if a failover advanced the endpoint within the sweep.
breaker_changes: Vec<(usize, BreakerTransition)>Breaker transitions observed, as (endpoint_index, transition).
active_change: Option<usize>The new active index if it changed (failover or snap-back).
served_by: Option<usize>The endpoint that ultimately served the request (on success).
Auto Trait Implementations§
impl !RefUnwindSafe for SweepResult
impl !UnwindSafe for SweepResult
impl Freeze for SweepResult
impl Send for SweepResult
impl Sync for SweepResult
impl Unpin for SweepResult
impl UnsafeUnpin for SweepResult
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