Skip to main content

AsyncCleanup

Trait AsyncCleanup 

Source
pub trait AsyncCleanup: Send {
    // Required method
    fn cleanup(self) -> impl Future<Output = Result<()>>;
}

Required Methods§

Source

fn cleanup(self) -> impl Future<Output = Result<()>>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl AsyncCleanup for ()

Source§

async fn cleanup(self) -> Result<()>

Implementors§