pub trait Snapshotter: Sync + Send {
// Required methods
fn snapshot_all_completed_immutables<'life0, 'life1, 'async_trait>(
&'life0 self,
archive_name_without_extension: &'life1 str,
) -> Pin<Box<dyn Future<Output = StdResult<FileArchive>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn snapshot_ancillary<'life0, 'life1, 'async_trait>(
&'life0 self,
immutable_file_number: ImmutableFileNumber,
archive_name_without_extension: &'life1 str,
) -> Pin<Box<dyn Future<Output = StdResult<FileArchive>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn snapshot_immutable_trio<'life0, 'life1, 'async_trait>(
&'life0 self,
immutable_file_number: ImmutableFileNumber,
archive_name_without_extension: &'life1 str,
) -> Pin<Box<dyn Future<Output = StdResult<FileArchive>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn compute_immutable_files_total_uncompressed_size<'life0, 'async_trait>(
&'life0 self,
up_to_immutable_file_number: ImmutableFileNumber,
) -> Pin<Box<dyn Future<Output = StdResult<u64>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn compression_algorithm(&self) -> CompressionAlgorithm;
}
Expand description
Define the ability to create snapshots.
Required Methods§
Sourcefn snapshot_all_completed_immutables<'life0, 'life1, 'async_trait>(
&'life0 self,
archive_name_without_extension: &'life1 str,
) -> Pin<Box<dyn Future<Output = StdResult<FileArchive>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn snapshot_all_completed_immutables<'life0, 'life1, 'async_trait>(
&'life0 self,
archive_name_without_extension: &'life1 str,
) -> Pin<Box<dyn Future<Output = StdResult<FileArchive>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create a new snapshot containing all completed immutables.
Sourcefn snapshot_ancillary<'life0, 'life1, 'async_trait>(
&'life0 self,
immutable_file_number: ImmutableFileNumber,
archive_name_without_extension: &'life1 str,
) -> Pin<Box<dyn Future<Output = StdResult<FileArchive>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn snapshot_ancillary<'life0, 'life1, 'async_trait>(
&'life0 self,
immutable_file_number: ImmutableFileNumber,
archive_name_without_extension: &'life1 str,
) -> Pin<Box<dyn Future<Output = StdResult<FileArchive>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create a new snapshot of ancillary files.
Ancillary files include the last, uncompleted, immutable trio and the last ledger file.
Sourcefn snapshot_immutable_trio<'life0, 'life1, 'async_trait>(
&'life0 self,
immutable_file_number: ImmutableFileNumber,
archive_name_without_extension: &'life1 str,
) -> Pin<Box<dyn Future<Output = StdResult<FileArchive>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn snapshot_immutable_trio<'life0, 'life1, 'async_trait>(
&'life0 self,
immutable_file_number: ImmutableFileNumber,
archive_name_without_extension: &'life1 str,
) -> Pin<Box<dyn Future<Output = StdResult<FileArchive>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create a new snapshot of an immutable trio.
Sourcefn compute_immutable_files_total_uncompressed_size<'life0, 'async_trait>(
&'life0 self,
up_to_immutable_file_number: ImmutableFileNumber,
) -> Pin<Box<dyn Future<Output = StdResult<u64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn compute_immutable_files_total_uncompressed_size<'life0, 'async_trait>(
&'life0 self,
up_to_immutable_file_number: ImmutableFileNumber,
) -> Pin<Box<dyn Future<Output = StdResult<u64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Compute the total and average uncompressed size of all immutables up to the given immutable file number.
Sourcefn compression_algorithm(&self) -> CompressionAlgorithm
fn compression_algorithm(&self) -> CompressionAlgorithm
Return the compression algorithm used by the snapshotter.