#[non_exhaustive]pub struct RepairBatchSummary {
pub total_files: u64,
pub succeeded: u64,
pub no_action: u64,
pub refused: u64,
pub failed: u64,
pub elapsed_millis: u64,
pub worst_exit_category: ExitCategory,
}Expand description
Batch metadata repair summary counters.
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.total_files: u64Total input count.
succeeded: u64Inputs that produced a modified repair output.
no_action: u64Inputs that needed no metadata change and were copied unchanged.
refused: u64Inputs refused by the repair safety model.
failed: u64Inputs that failed while attempting an output write.
elapsed_millis: u64Elapsed milliseconds.
worst_exit_category: ExitCategoryWorst exit category.
Implementations§
Source§impl RepairBatchSummary
impl RepairBatchSummary
Sourcepub fn builder() -> RepairBatchSummaryBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> RepairBatchSummaryBuilder<((), (), (), (), (), (), ())>
Create a builder for building RepairBatchSummary.
On the builder, call .total_files(...), .succeeded(...), .no_action(...), .refused(...), .failed(...), .elapsed_millis(...), .worst_exit_category(...) to set the values of the fields.
Finally, call .build() to create the instance of RepairBatchSummary.
Source§impl RepairBatchSummary
impl RepairBatchSummary
Sourcepub fn from_items(items: &[RepairReport], elapsed: Duration) -> Self
pub fn from_items(items: &[RepairReport], elapsed: Duration) -> Self
Computes summary counters from item reports.
Trait Implementations§
Source§impl Clone for RepairBatchSummary
impl Clone for RepairBatchSummary
Source§fn clone(&self) -> RepairBatchSummary
fn clone(&self) -> RepairBatchSummary
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 RepairBatchSummary
impl Debug for RepairBatchSummary
Source§impl Default for RepairBatchSummary
impl Default for RepairBatchSummary
Source§fn default() -> RepairBatchSummary
fn default() -> RepairBatchSummary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RepairBatchSummary
impl<'de> Deserialize<'de> for RepairBatchSummary
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
Source§impl PartialEq for RepairBatchSummary
impl PartialEq for RepairBatchSummary
Source§fn eq(&self, other: &RepairBatchSummary) -> bool
fn eq(&self, other: &RepairBatchSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RepairBatchSummary
impl Serialize for RepairBatchSummary
impl Eq for RepairBatchSummary
impl StructuralPartialEq for RepairBatchSummary
Auto Trait Implementations§
impl Freeze for RepairBatchSummary
impl RefUnwindSafe for RepairBatchSummary
impl Send for RepairBatchSummary
impl Sync for RepairBatchSummary
impl Unpin for RepairBatchSummary
impl UnsafeUnpin for RepairBatchSummary
impl UnwindSafe for RepairBatchSummary
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