pub struct AsyncPerform<C, A>{ /* private fields */ }
Expand description
The AsyncPerform struct is the result when calling nonblocking() function to signify the end of the builder. The main job of this is to perform the Curl in nonblocking fashion.
Implementations§
Source§impl<C, A> AsyncPerform<C, A>
impl<C, A> AsyncPerform<C, A>
Sourcepub async fn send_request(self) -> Result<Easy2<C>, Error<C>>
pub async fn send_request(self) -> Result<Easy2<C>, Error<C>>
This will send the request asynchronously,
and return the underlying Easy2<C>
useful if you
want to decide how to transform the response yourself.
This becomes a non-blocking I/O since the actual perform operation is done at the actor side using Curl-Multi.
Auto Trait Implementations§
impl<C, A> Freeze for AsyncPerform<C, A>where
A: Freeze,
impl<C, A> !RefUnwindSafe for AsyncPerform<C, A>
impl<C, A> Send for AsyncPerform<C, A>where
A: Send,
impl<C, A> !Sync for AsyncPerform<C, A>
impl<C, A> Unpin for AsyncPerform<C, A>where
A: Unpin,
impl<C, A> UnwindSafe for AsyncPerform<C, A>where
A: UnwindSafe,
C: UnwindSafe,
Blanket Implementations§
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