pub struct CurlBackend;Expand description
The backend implementation using libcurl.
Trait Implementations§
Source§impl AsyncBackend for CurlBackend
Available on crate feature async only.
impl AsyncBackend for CurlBackend
Available on crate feature
async only.Source§type AsyncClient = CurlMultiClient
type AsyncClient = CurlMultiClient
The type of client this backend creates.
Source§async fn create_async_client(
&self,
options: ClientOptions,
) -> Result<Self::AsyncClient, NyquestError>
async fn create_async_client( &self, options: ClientOptions, ) -> Result<Self::AsyncClient, NyquestError>
Creates a new async client with the given options.
Source§impl BlockingBackend for CurlBackend
Available on crate feature blocking only.
impl BlockingBackend for CurlBackend
Available on crate feature
blocking only.Source§type BlockingClient = CurlEasyClient
type BlockingClient = CurlEasyClient
The type of client this backend creates.
Source§fn create_blocking_client(
&self,
options: ClientOptions,
) -> NyquestResult<Self::BlockingClient>
fn create_blocking_client( &self, options: ClientOptions, ) -> NyquestResult<Self::BlockingClient>
Creates a new blocking client with the given options.
Auto Trait Implementations§
impl Freeze for CurlBackend
impl RefUnwindSafe for CurlBackend
impl Send for CurlBackend
impl Sync for CurlBackend
impl Unpin for CurlBackend
impl UnwindSafe for CurlBackend
Blanket Implementations§
Source§impl<A> AnyAsyncBackend for A
impl<A> AnyAsyncBackend for A
Source§fn create_async_client(
&self,
options: ClientOptions,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn AnyAsyncClient>, Error>> + Send + '_>>
fn create_async_client( &self, options: ClientOptions, ) -> Pin<Box<dyn Future<Output = Result<Box<dyn AnyAsyncClient>, Error>> + Send + '_>>
Creates a new async client with the given options.
Source§impl<B> AnyBlockingBackend for Bwhere
B: BlockingBackend,
impl<B> AnyBlockingBackend for Bwhere
B: BlockingBackend,
Source§fn create_blocking_client(
&self,
options: ClientOptions,
) -> Result<Box<dyn AnyBlockingClient>, Error>
fn create_blocking_client( &self, options: ClientOptions, ) -> Result<Box<dyn AnyBlockingClient>, Error>
Creates a new blocking client with the given options.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more