Struct async_curl::response_handler::ResponseHandler
source · pub struct ResponseHandler { /* private fields */ }Expand description
A handler of Easy2
use curl::easy::Easy2;
use async_curl::response_handler::ResponseHandler;
let easy2 = Easy2::new(ResponseHandler::new());
println!("{:?}", easy2.get_ref());Implementations§
Trait Implementations§
source§impl Clone for ResponseHandler
impl Clone for ResponseHandler
source§fn clone(&self) -> ResponseHandler
fn clone(&self) -> ResponseHandler
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ResponseHandler
impl Debug for ResponseHandler
source§impl Default for ResponseHandler
impl Default for ResponseHandler
source§fn default() -> ResponseHandler
fn default() -> ResponseHandler
Returns the “default value” for a type. Read more
source§impl Handler for ResponseHandler
impl Handler for ResponseHandler
source§fn write(&mut self, data: &[u8]) -> Result<usize, WriteError>
fn write(&mut self, data: &[u8]) -> Result<usize, WriteError>
This will store the response from the server to the data vector.
source§fn read(&mut self, data: &mut [u8]) -> Result<usize, ReadError>
fn read(&mut self, data: &mut [u8]) -> Result<usize, ReadError>
Read callback for data uploads. Read more
source§fn seek(&mut self, whence: SeekFrom) -> SeekResult
fn seek(&mut self, whence: SeekFrom) -> SeekResult
User callback for seeking in input stream. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ResponseHandler
impl Send for ResponseHandler
impl Sync for ResponseHandler
impl Unpin for ResponseHandler
impl UnwindSafe for ResponseHandler
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