#[non_exhaustive]pub struct OperationProgress {
pub name: String,
pub status: Status,
pub metrics: Vec<Metric>,
pub stages: Vec<OperationProgress>,
/* private fields */
}Expand description
Information about operation (or operation stage) progress.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringA non-parameterized string describing an operation stage. Unset for single-stage operations.
status: StatusStatus of an operation stage. Unset for single-stage operations.
metrics: Vec<Metric>Progress metric bundle, for example: metrics: [{name: “nodes done”, int_value: 15}, {name: “nodes total”, int_value: 32}] or metrics: [{name: “progress”, double_value: 0.56}, {name: “progress scale”, double_value: 1.0}]
stages: Vec<OperationProgress>Substages of an operation or a stage.
Implementations§
Source§impl OperationProgress
impl OperationProgress
pub fn new() -> Self
Sourcepub fn set_status<T: Into<Status>>(self, v: T) -> Self
pub fn set_status<T: Into<Status>>(self, v: T) -> Self
Sets the value of status.
Sourcepub fn set_metrics<T, V>(self, v: T) -> Self
pub fn set_metrics<T, V>(self, v: T) -> Self
Sets the value of metrics.
Sourcepub fn set_stages<T, V>(self, v: T) -> Self
pub fn set_stages<T, V>(self, v: T) -> Self
Sets the value of stages.
Trait Implementations§
Source§impl Clone for OperationProgress
impl Clone for OperationProgress
Source§fn clone(&self) -> OperationProgress
fn clone(&self) -> OperationProgress
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OperationProgress
impl Debug for OperationProgress
Source§impl Default for OperationProgress
impl Default for OperationProgress
Source§fn default() -> OperationProgress
fn default() -> OperationProgress
Returns the “default value” for a type. Read more
Source§impl Message for OperationProgress
impl Message for OperationProgress
Source§impl PartialEq for OperationProgress
impl PartialEq for OperationProgress
impl StructuralPartialEq for OperationProgress
Auto Trait Implementations§
impl Freeze for OperationProgress
impl RefUnwindSafe for OperationProgress
impl Send for OperationProgress
impl Sync for OperationProgress
impl Unpin for OperationProgress
impl UnwindSafe for OperationProgress
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