fn read(&mut self, data: &mut [u8]) -> Result<usize, curl::easy::ReadError> {
        // Don't bother if the request is canceled.
        if self.is_canceled() {
            return Err(curl::easy::ReadError::Abort);
        }

        self.request_body
            .read(data)
            .map_err(|_| curl::easy::ReadError::Abort)
    }
// Gets called by curl when attempting to send bytes of the request body.
Gets called by curl when attempting to send bytes of the request body.
Gets called by curl when attempting to send bytes of the request body .
fn read(&mut self, data: &mut [u8]) -> Result<usize, curl::easy::ReadError> {
        // Don't bother if the request is canceled.
        if self.is_canceled() {
            return Err(curl::easy::ReadError::Abort);
        }
        self.request_body
            .read(data)
            .map_err(|_| curl::easy::ReadError::Abort)
    }
fn read ( & mut self , data : & mut [ u8 ] ) -> Result < usize , curl :: easy :: ReadError > { // Don't bother if the request is canceled. if self . is_canceled ( ) { return Err ( curl :: easy :: ReadError :: Abort ) ; } self . request_body . read ( data ) . map_err ( | _ | curl :: easy :: ReadError :: Abort ) }
Gets called by curl when attempting to send bytes of the request body.
Gets called by curl when attempting to send bytes of the request body .
&mut self
data
&mut [u8]
&mut self
data
&mut [u8]