pub trait AsyncDataSource<A: Digest>:
DynClone
+ Debug
+ Sync
+ Send {
// Required methods
fn slice(
&self,
size: PartSize,
) -> BoxFuture<'_, IoResult<Option<AsyncDataSourceReader>>>;
fn reset(&self) -> BoxFuture<'_, IoResult<()>>;
fn source_key(&self) -> BoxFuture<'_, IoResult<Option<SourceKey<A>>>>;
fn total_size(&self) -> BoxFuture<'_, IoResult<Option<u64>>>;
}Available on crate feature
async only.Expand description
异步数据源接口
提供上传所用的数据源