pub struct CoordinatorProgress {
pub pending_tasks: usize,
pub running_tasks: usize,
pub completed_tasks: usize,
pub failed_tasks: usize,
pub active_workers: usize,
pub idle_workers: usize,
}Expand description
Progress information for the coordinator.
Fields§
§pending_tasks: usizeNumber of pending tasks.
running_tasks: usizeNumber of running tasks.
completed_tasks: usizeNumber of completed tasks.
failed_tasks: usizeNumber of failed tasks.
active_workers: usizeNumber of active workers.
idle_workers: usizeNumber of idle workers.
Implementations§
Source§impl CoordinatorProgress
impl CoordinatorProgress
Sourcepub fn total_tasks(&self) -> usize
pub fn total_tasks(&self) -> usize
Get the total number of tasks.
Sourcepub fn completion_percentage(&self) -> f64
pub fn completion_percentage(&self) -> f64
Get the completion percentage.
Trait Implementations§
Source§impl Clone for CoordinatorProgress
impl Clone for CoordinatorProgress
Source§fn clone(&self) -> CoordinatorProgress
fn clone(&self) -> CoordinatorProgress
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 CoordinatorProgress
impl Debug for CoordinatorProgress
Source§impl Default for CoordinatorProgress
impl Default for CoordinatorProgress
Source§fn default() -> CoordinatorProgress
fn default() -> CoordinatorProgress
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CoordinatorProgress
impl RefUnwindSafe for CoordinatorProgress
impl Send for CoordinatorProgress
impl Sync for CoordinatorProgress
impl Unpin for CoordinatorProgress
impl UnsafeUnpin for CoordinatorProgress
impl UnwindSafe for CoordinatorProgress
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request