pub struct ProgressTracker { /* private fields */ }Expand description
Progress tracker
Implementations§
Source§impl ProgressTracker
impl ProgressTracker
pub fn new() -> Self
pub fn initialize(&mut self) -> Result<(), MLError>
Sourcepub fn register_job(&mut self, job: TrainingJob)
pub fn register_job(&mut self, job: TrainingJob)
Register a training job under its job id.
Sourcepub fn get_job(&self, job_id: &str) -> Option<&TrainingJob>
pub fn get_job(&self, job_id: &str) -> Option<&TrainingJob>
Get a registered training job by id.
Sourcepub fn get_job_mut(&mut self, job_id: &str) -> Option<&mut TrainingJob>
pub fn get_job_mut(&mut self, job_id: &str) -> Option<&mut TrainingJob>
Get a mutable reference to a registered training job by id.
Sourcepub fn remove_job(&mut self, job_id: &str) -> bool
pub fn remove_job(&mut self, job_id: &str) -> bool
Remove a registered training job by id. Returns true if removed.
Sourcepub fn progress_metrics(&self) -> &ProgressMetrics
pub fn progress_metrics(&self) -> &ProgressMetrics
Return a reference to the progress metrics.
Sourcepub fn progress_metrics_mut(&mut self) -> &mut ProgressMetrics
pub fn progress_metrics_mut(&mut self) -> &mut ProgressMetrics
Return a mutable reference to the progress metrics.
Auto Trait Implementations§
impl Freeze for ProgressTracker
impl RefUnwindSafe for ProgressTracker
impl Send for ProgressTracker
impl Sync for ProgressTracker
impl Unpin for ProgressTracker
impl UnsafeUnpin for ProgressTracker
impl UnwindSafe for ProgressTracker
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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