pub struct RepairResult {
pub steps: Vec<RepairStepResult>,
}Expand description
Result of the full repair sequence.
Fields§
§steps: Vec<RepairStepResult>Individual step results in order.
Implementations§
Source§impl RepairResult
impl RepairResult
Sourcepub fn add_step(
&mut self,
name: &str,
success: bool,
error_message: Option<String>,
)
pub fn add_step( &mut self, name: &str, success: bool, error_message: Option<String>, )
Add a step result.
Sourcepub fn successful_count(&self) -> usize
pub fn successful_count(&self) -> usize
Get the number of successful steps.
Sourcepub fn failed_count(&self) -> usize
pub fn failed_count(&self) -> usize
Get the number of failed steps.
Sourcepub fn all_succeeded(&self) -> bool
pub fn all_succeeded(&self) -> bool
Whether all steps succeeded.
Sourcepub fn failed_steps(&self) -> Vec<&str>
pub fn failed_steps(&self) -> Vec<&str>
Get failed step names.
Sourcepub fn format_summary(&self) -> String
pub fn format_summary(&self) -> String
Format a summary report.
Trait Implementations§
Source§impl Clone for RepairResult
impl Clone for RepairResult
Source§impl Debug for RepairResult
impl Debug for RepairResult
Auto Trait Implementations§
impl Freeze for RepairResult
impl RefUnwindSafe for RepairResult
impl Send for RepairResult
impl Sync for RepairResult
impl Unpin for RepairResult
impl UnsafeUnpin for RepairResult
impl UnwindSafe for RepairResult
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