pub trait AsyncTestContextwhere
Self: Sized,{
// Required method
fn setup() -> impl Future<Output = Self> + Send;
// Provided method
fn teardown(self) -> impl Future<Output = ()> + Send { ... }
}
Expand description
The trait to implement to get setup/teardown functionality for async tests.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.