pub trait AsyncDataSource<A: Digest>: DynClone + Debug + Sync + Send {
    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

异步数据源接口

提供上传所用的数据源

Required Methods

异步数据源切片

异步重置数据源

异步获取数据源 KEY

用于区分不同的数据源

异步获取数据源大小

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Implementations on Foreign Types

Available on crate feature async only.
Available on crate feature async only.
Available on crate feature async only.
Available on crate feature async only.
Available on crate feature async only.
Available on crate feature async only.
Available on crate feature async only.
Available on crate feature async only.
Available on crate feature async only.
Available on crate feature async only.
Available on crate feature async only.
Available on crate feature async only.
Available on crate feature async only.
Available on crate feature async only.
Available on crate feature async only.
Available on crate feature async only.
Available on crate feature async only.
Available on crate feature async only.
Available on crate feature async only.
Available on crate feature async only.

Implementors