CloudOps

Trait CloudOps 

Source
pub trait CloudOps: Send + Sync {
    // Required methods
    fn download_file<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        container: &'life1 str,
        object: &'life2 str,
        dest: &'life3 Path,
    ) -> Pin<Box<dyn Future<Output = LifecycleResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn upload_file<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        container: &'life1 str,
        object: &'life2 str,
        src: &'life3 Path,
    ) -> Pin<Box<dyn Future<Output = LifecycleResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn stop_self<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = LifecycleResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Cloud operations required for hydration/dehydration and self-stop.

Required Methods§

Source

fn download_file<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, container: &'life1 str, object: &'life2 str, dest: &'life3 Path, ) -> Pin<Box<dyn Future<Output = LifecycleResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Downloads object from container to dest.

Source

fn upload_file<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, container: &'life1 str, object: &'life2 str, src: &'life3 Path, ) -> Pin<Box<dyn Future<Output = LifecycleResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Uploads src to container/object.

Source

fn stop_self<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = LifecycleResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Attempts to stop the current instance.

Implementors§