Trait BlockingBackend

Source
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§

Source

type BlockingClient: BlockingClient

The type of client this backend creates.

Required Methods§

Source

fn create_blocking_client( &self, options: ClientOptions, ) -> Result<Self::BlockingClient>

Creates a new blocking client with the given options.

Implementors§