pub trait BlockingBackend:
Send
+ Sync
+ 'static {
type BlockingClient: BlockingClient;
// Required method
fn create_blocking_client(
&self,
options: ClientOptions,
) -> Result<Self::BlockingClient>;
}Available on crate feature
blocking only.Expand description
Trait for blocking HTTP backend implementations.
This trait represents a backend implementation that can create blocking HTTP clients.
Required Associated Types§
Sourcetype BlockingClient: BlockingClient
type BlockingClient: BlockingClient
The type of client this backend creates.
Required Methods§
Sourcefn create_blocking_client(
&self,
options: ClientOptions,
) -> Result<Self::BlockingClient>
fn create_blocking_client( &self, options: ClientOptions, ) -> Result<Self::BlockingClient>
Creates a new blocking client with the given options.