pub struct DeferredContainerRun<T> { /* private fields */ }Expand description
A provisional container result whose successful value remains owned by its mandatory cleanup check.
Implementations§
Source§impl<T> DeferredContainerRun<T>
impl<T> DeferredContainerRun<T>
Sourcepub fn provisional(&self) -> &T
pub fn provisional(&self) -> &T
Borrows the value while the child finishes cleanup.
Sourcepub fn finalize(self) -> Result<T, RunError>
pub fn finalize(self) -> Result<T, RunError>
Waits for cleanup and returns the value only after a successful exit.
Sourcepub fn finalize_with_status(self) -> Result<(T, ExitStatus), RunError>
pub fn finalize_with_status(self) -> Result<(T, ExitStatus), RunError>
Waits for cleanup and returns the value and actual successful child
status. A nonzero/signal status remains RunError::ExitStatus. This
observes this container child only, not any guest’s separate teardown.
Auto Trait Implementations§
impl<T> Freeze for DeferredContainerRun<T>
impl<T> RefUnwindSafe for DeferredContainerRun<T>where
Option<T>: RefUnwindSafe,
impl<T> Send for DeferredContainerRun<T>
impl<T> Sync for DeferredContainerRun<T>
impl<T> Unpin for DeferredContainerRun<T>
impl<T> UnsafeUnpin for DeferredContainerRun<T>where
Option<T>: UnsafeUnpin,
impl<T> UnwindSafe for DeferredContainerRun<T>where
Option<T>: UnwindSafe,
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