pub struct CleanupReport { /* private fields */ }Expand description
Cleanup attempts and their historical failures.
A later successful teardown does not erase a failed facade deletion.
§Examples
use qubit_fs_testkit::{FileSystemContract, FileSystemContractSuite};
let fixture = RustdocSyncFixture::new();
let mut suite = FileSystemContractSuite::new(&fixture);
suite.run_contract(FileSystemContract::Properties);
assert!(suite.run().cleanup().completed());Implementations§
Source§impl CleanupReport
impl CleanupReport
Sourcepub const fn attempts(&self) -> usize
pub const fn attempts(&self) -> usize
Returns the number of cleanup attempts started, including cancelled ones.
§Returns
The number of attempts that began before this report was observed.
Sourcepub const fn completed(&self) -> bool
pub const fn completed(&self) -> bool
Returns whether the latest cleanup attempt returned successfully.
§Returns
true when the latest attempt returned successfully, and false when
it failed or was cancelled.
Sourcepub fn failures(&self) -> &[ContractFailure]
pub fn failures(&self) -> &[ContractFailure]
Returns every observed failure, including failures before a retry.
§Returns
The failures from all attempts in the order they were observed.
Auto Trait Implementations§
impl !RefUnwindSafe for CleanupReport
impl !UnwindSafe for CleanupReport
impl Forget for CleanupReport
impl Freeze for CleanupReport
impl Move for CleanupReport
impl Send for CleanupReport
impl Sync for CleanupReport
impl Unpin for CleanupReport
impl UnsafeUnpin for CleanupReport
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