pub struct ModelRouteHealth {
pub route: String,
pub target: ModelRef,
pub state: CircuitState,
pub consecutive_failures: u32,
pub retry_after: Option<Duration>,
}Expand description
Point-in-time health for one physical model route.
Fields§
§route: StringStable route name.
target: ModelRefPhysical model target.
state: CircuitStateCurrent circuit state.
consecutive_failures: u32Consecutive counted failures in the current generation.
retry_after: Option<Duration>Remaining cooldown for an open route.
Trait Implementations§
Source§impl Clone for ModelRouteHealth
impl Clone for ModelRouteHealth
Source§fn clone(&self) -> ModelRouteHealth
fn clone(&self) -> ModelRouteHealth
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ModelRouteHealth
impl Debug for ModelRouteHealth
impl Eq for ModelRouteHealth
Source§impl PartialEq for ModelRouteHealth
impl PartialEq for ModelRouteHealth
impl StructuralPartialEq for ModelRouteHealth
Auto Trait Implementations§
impl Freeze for ModelRouteHealth
impl RefUnwindSafe for ModelRouteHealth
impl Send for ModelRouteHealth
impl Sync for ModelRouteHealth
impl Unpin for ModelRouteHealth
impl UnsafeUnpin for ModelRouteHealth
impl UnwindSafe for ModelRouteHealth
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