pub trait ResumableRecorder: DynClone + Debug + Sync + Send {
    type HashAlgorithm: Digest;

    fn open_for_read(
        &self,
        source_key: &SourceKey<Self::HashAlgorithm>
    ) -> IoResult<Box<dyn ReadOnlyResumableRecorderMedium>>; fn open_for_append(
        &self,
        source_key: &SourceKey<Self::HashAlgorithm>
    ) -> IoResult<Box<dyn AppendOnlyResumableRecorderMedium>>; fn open_for_create_new(
        &self,
        source_key: &SourceKey<Self::HashAlgorithm>
    ) -> IoResult<Box<dyn AppendOnlyResumableRecorderMedium>>; fn delete(&self, source_key: &SourceKey<Self::HashAlgorithm>) -> IoResult<()>; fn open_for_async_read<'a>(
        &'a self,
        source_key: &'a SourceKey<Self::HashAlgorithm>
    ) -> BoxFuture<'a, IoResult<Box<dyn ReadOnlyAsyncResumableRecorderMedium>>>; fn open_for_async_append<'a>(
        &'a self,
        source_key: &'a SourceKey<Self::HashAlgorithm>
    ) -> BoxFuture<'a, IoResult<Box<dyn AppendOnlyAsyncResumableRecorderMedium>>>; fn open_for_async_create_new<'a>(
        &'a self,
        source_key: &'a SourceKey<Self::HashAlgorithm>
    ) -> BoxFuture<'a, IoResult<Box<dyn AppendOnlyAsyncResumableRecorderMedium>>>; fn async_delete<'a>(
        &'a self,
        source_key: &'a SourceKey<Self::HashAlgorithm>
    ) -> BoxFuture<'a, IoResult<()>>; }
Expand description

断点恢复记录器

Required Associated Types

数据源 KEY 的哈希算法

Required Methods

根据数据源 KEY 打开只读记录介质

根据数据源 KEY 打开追加记录介质

根据数据源 KEY 创建追加记录介质

根据数据源 KEY 删除记录介质

Available on crate feature async only.

根据数据源 KEY 打开异步只读记录介质

Available on crate feature async only.

根据数据源 KEY 打开异步追加记录介质

Available on crate feature async only.

根据数据源 KEY 创建异步追加记录介质

Available on crate feature async only.

根据数据源 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