CurlBackend

Struct CurlBackend 

Source
pub struct CurlBackend;
Expand description

The backend implementation using libcurl.

Trait Implementations§

Source§

impl AsyncBackend for CurlBackend

Available on crate feature async only.
Source§

type AsyncClient = CurlMultiClient

The type of client this backend creates.
Source§

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

type BlockingClient = CurlEasyClient

The type of client this backend creates.
Source§

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

Creates a new blocking client with the given options.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<A> AnyAsyncBackend for A

Source§

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 B
where B: BlockingBackend,

Source§

fn create_blocking_client( &self, options: ClientOptions, ) -> Result<Box<dyn AnyBlockingClient>, Error>

Creates a new blocking client with the given options.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.