pub trait ResumablePolicyProvider: DynClone + Debug + Sync + Send {
    fn get_policy_from_size(
        &self,
        source_size: u64,
        opts: GetPolicyOptions
    ) -> ResumablePolicy; fn get_policy_from_reader<'a>(
        &self,
        reader: Box<dyn DynRead + 'a>,
        opts: GetPolicyOptions
    ) -> IoResult<(ResumablePolicy, Box<dyn DynRead + 'a>)>; fn get_policy_from_async_reader<'a>(
        &self,
        reader: Box<dyn DynAsyncRead + 'a>,
        opts: GetPolicyOptions
    ) -> BoxFuture<'a, IoResult<(ResumablePolicy, Box<dyn DynAsyncRead + 'a>)>>; }
Expand description

可恢复策略获取接口

Required Methods

通过数据源大小获取可恢复策略

通过输入流获取可恢复策略

返回选择的可恢复策略,以及经过更新的输入流

该方法的异步版本为 Self::get_policy_from_async_reader

Available on crate feature async only.

通过异步输入流获取可恢复策略

返回选择的可恢复策略,以及经过更新的异步输入流

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.

Implementors