pub trait AnyAsyncBackend:
Send
+ Sync
+ 'static {
// Required method
fn create_async_client(
&self,
options: ClientOptions,
) -> BoxFuture<'_, Result<Box<dyn AnyAsyncClient>>>;
}
Available on crate feature
async
only.Expand description
Trait for type-erased async backend implementations.
Automatically implemented for types implementing AsyncBackend
.
Required Methods§
Sourcefn create_async_client(
&self,
options: ClientOptions,
) -> BoxFuture<'_, Result<Box<dyn AnyAsyncClient>>>
fn create_async_client( &self, options: ClientOptions, ) -> BoxFuture<'_, Result<Box<dyn AnyAsyncClient>>>
Creates a new async client with the given options.