Trait test_context::AsyncTestContext
source · pub trait AsyncTestContextwhere
Self: Sized,{
// Required method
fn setup<'async_trait>(
) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>>
where Self: 'async_trait;
// Provided method
fn teardown<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: Send + 'async_trait { ... }
}
Expand description
The trait to implement to get setup/teardown functionality for async tests.
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.