#[non_exhaustive]pub enum Cleanup<S, P> {
TornDown(Result<TornDown<S>, TearDownError<S, P>>),
Skipped,
}Expand description
What happened after a bring-up’s error or cancellation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TornDown(Result<TornDown<S>, TearDownError<S, P>>)
A tear-down ran (after an error with tear_down_on_error, the default, or after a
cancellation); its result.
Skipped
No tear-down: after an error with tear_down_on_error: false, both ends as the
error left them; or a cancellation seen at entry, before any I/O.
Trait Implementations§
impl<S, P> Copy for Cleanup<S, P>
impl<S, P> Eq for Cleanup<S, P>
impl<S, P> StructuralPartialEq for Cleanup<S, P>
Auto Trait Implementations§
impl<S, P> Forget for Cleanup<S, P>
impl<S, P> Freeze for Cleanup<S, P>
impl<S, P> Move for Cleanup<S, P>
impl<S, P> RefUnwindSafe for Cleanup<S, P>
impl<S, P> Send for Cleanup<S, P>
impl<S, P> Sync for Cleanup<S, P>
impl<S, P> Unpin for Cleanup<S, P>
impl<S, P> UnsafeUnpin for Cleanup<S, P>
impl<S, P> UnwindSafe for Cleanup<S, P>
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