Skip to main content

ProviderTurnCleanup

Trait ProviderTurnCleanup 

Source
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§

Source

fn ownership(&self) -> TurnCleanupOwnership

Returns the conservative ownership state before cleanup completes.

Source

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,

Resolves only after the provider has completed its owned cleanup path.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§