pub trait MultiPartsUploaderWithCallbacks: UploaderWithCallbacks {
// Required method
fn on_part_uploaded<F: Fn(&dyn UploadedPart) -> AnyResult<()> + Send + Sync + 'static>(
&mut self,
callback: F,
) -> &mut Self;
}
Expand description
分片上传回调函数提供者
Required Methods§
Sourcefn on_part_uploaded<F: Fn(&dyn UploadedPart) -> AnyResult<()> + Send + Sync + 'static>(
&mut self,
callback: F,
) -> &mut Self
fn on_part_uploaded<F: Fn(&dyn UploadedPart) -> AnyResult<()> + Send + Sync + 'static>( &mut self, callback: F, ) -> &mut Self
设置分片上传回调函数
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.