pub trait UploaderWithCallbacks {
    fn on_before_request<F: Fn(&mut RequestBuilderParts<'_>) -> AnyResult<()> + Send + Sync + 'static>(
        &mut self,
        callback: F
    ) -> &mut Self; fn on_upload_progress<F: Fn(&UploadingProgressInfo) -> AnyResult<()> + Send + Sync + 'static>(
        &mut self,
        callback: F
    ) -> &mut Self; fn on_response_ok<F: Fn(&mut ResponseParts) -> AnyResult<()> + Send + Sync + 'static>(
        &mut self,
        callback: F
    ) -> &mut Self; fn on_response_error<F: Fn(&mut ResponseError) -> AnyResult<()> + Send + Sync + 'static>(
        &mut self,
        callback: F
    ) -> &mut Self; }
Expand description

上传回调函数提供者

Required Methods

设置请求前的回调函数

设置上传进度回调函数

设置响应成功的回调函数

设置响应错误的回调函数

Implementors