pub trait AsyncDataSource<A>: DynClone + Debug + Sync + Sendwhere
    A: Digest,
{ fn slice(
        &self,
        size: PartSize
    ) -> Pin<Box<dyn Future<Output = Result<Option<AsyncDataSourceReader>, Error>> + Send, Global>>; fn reset(
        &self
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send, Global>>; fn source_key(
        &self
    ) -> Pin<Box<dyn Future<Output = Result<Option<SourceKey<A>>, Error>> + Send, Global>>; fn total_size(
        &self
    ) -> Pin<Box<dyn Future<Output = Result<Option<u64>, Error>> + Send, Global>>; }
Expand description

异步数据源接口

提供上传所用的数据源

Required Methods

异步数据源切片

异步重置数据源

异步获取数据源 KEY

用于区分不同的数据源

异步获取数据源大小

Implementations on Foreign Types

Implementors