Trait backup_cli::utils::storage_ext::BackupStorageExt[][src]

pub trait BackupStorageExt {
    fn read_all<'life0, 'life1, 'async_trait>(
        &'life0 self,
        file_handle: &'life1 FileHandleRef
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn load_json_file<'life0, 'life1, 'async_trait, T: DeserializeOwned>(
        &'life0 self,
        file_handle: &'life1 FileHandleRef
    ) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>
    where
        T: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn load_bcs_file<'life0, 'life1, 'async_trait, T: DeserializeOwned>(
        &'life0 self,
        file_handle: &'life1 FileHandleRef
    ) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>
    where
        T: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn create_backup_with_random_suffix<'life0, 'life1, 'async_trait>(
        &'life0 self,
        name: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<BackupHandle>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

Required methods

Adds a random suffix “.XXXX” to the backup name, so a retry won’t pass a same backup name to the storage.

Implementations on Foreign Types

Implementors