pub trait ProviderTurnCleanup: Send + Sync {
// Required methods
fn ownership(&self) -> TurnCleanupOwnership;
fn wait_for_cleanup<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
A provider-owned cleanup acknowledgement for one turn. Implementations must not expose OS handles or command lines through this public boundary.
Required Methods§
Sourcefn ownership(&self) -> TurnCleanupOwnership
fn ownership(&self) -> TurnCleanupOwnership
Returns the conservative ownership state before cleanup completes.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".