pub struct ModelConvergenceStatus {
pub model_id: String,
pub target_version: String,
pub total_platforms: usize,
pub converged: usize,
pub in_progress: usize,
pub pending: usize,
pub failed: usize,
pub version_distribution: HashMap<String, usize>,
pub blockers: Vec<ConvergenceBlocker>,
pub estimated_completion: Option<Duration>,
}Expand description
Status of model convergence across the formation
Fields§
§model_id: StringModel identifier
target_version: StringTarget version we’re converging to
total_platforms: usizeTotal number of target platforms
converged: usizePlatforms that have target version AND it’s operational
in_progress: usizePlatforms currently receiving/deploying the model
pending: usizePlatforms not yet started
failed: usizePlatforms where distribution/deployment failed
version_distribution: HashMap<String, usize>Distribution of versions across platforms (version -> count)
blockers: Vec<ConvergenceBlocker>What’s blocking convergence on specific nodes
estimated_completion: Option<Duration>Estimated time to full convergence (if calculable)
Implementations§
Source§impl ModelConvergenceStatus
impl ModelConvergenceStatus
Sourcepub fn new(model_id: &str, target_version: &str, total_platforms: usize) -> Self
pub fn new(model_id: &str, target_version: &str, total_platforms: usize) -> Self
Create new convergence status
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Check if convergence is complete (all platforms converged or failed)
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Check if convergence succeeded (all platforms have target version)
Sourcepub fn convergence_progress(&self) -> f64
pub fn convergence_progress(&self) -> f64
Calculate convergence progress (0.0 to 1.0)
Trait Implementations§
Source§impl Clone for ModelConvergenceStatus
impl Clone for ModelConvergenceStatus
Source§fn clone(&self) -> ModelConvergenceStatus
fn clone(&self) -> ModelConvergenceStatus
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 ModelConvergenceStatus
impl Debug for ModelConvergenceStatus
Source§impl<'de> Deserialize<'de> for ModelConvergenceStatus
impl<'de> Deserialize<'de> for ModelConvergenceStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ModelConvergenceStatus
impl RefUnwindSafe for ModelConvergenceStatus
impl Send for ModelConvergenceStatus
impl Sync for ModelConvergenceStatus
impl Unpin for ModelConvergenceStatus
impl UnsafeUnpin for ModelConvergenceStatus
impl UnwindSafe for ModelConvergenceStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more