pub trait Adapter: Sized + Deref<Target = Runtime> {
// Required methods
fn new(runtime: Runtime) -> Result<Self>;
async fn wait(&self, timeout: Option<Duration>) -> Result<()>;
fn clear(&self) -> Result<()>;
}Expand description
Adapter trait for different runtimes.
Required 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.