pub trait UploadHandler {
    fn prepare<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
        &'life0 self,
        sugar_config: &'life1 SugarConfig,
        assets: &'life2 HashMap<usize, AssetPair>,
        image_indices: &'life3 [usize],
        metadata_indices: &'life4 [usize],
        animation_indices: &'life5 [usize]
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        'life4: 'async_trait,
        'life5: 'async_trait,
        Self: 'async_trait
; fn upload_data<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        sugar_config: &'life1 SugarConfig,
        assets: &'life2 HashMap<usize, AssetPair>,
        cache: &'life3 mut Cache,
        indices: &'life4 [usize],
        data_type: DataType,
        interrupted: Arc<AtomicBool>
    ) -> Pin<Box<dyn Future<Output = Result<Vec<UploadError>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        'life4: 'async_trait,
        Self: 'async_trait
; }
Expand description

A trait for storage upload handlers.

Required Methods

Prepares the upload of the specified image/metadata files.

Upload the data to a (permanent) storage.

Implementors