Trait HandleStrategy

Source
pub trait HandleStrategy<'a>: Send + Sync {
    // Required methods
    fn save_chunk(
        &self,
        chunk_data: &'a [u8],
        chunk_index: usize,
    ) -> impl Future<Output = Result<(), ChunkStrategyError>> + Send;
    fn merge_chunks(
        &self,
    ) -> impl Future<Output = Result<(), ChunkStrategyError>> + Send;
}

Required Methods§

Source

fn save_chunk( &self, chunk_data: &'a [u8], chunk_index: usize, ) -> impl Future<Output = Result<(), ChunkStrategyError>> + Send

Source

fn merge_chunks( &self, ) -> impl Future<Output = Result<(), ChunkStrategyError>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§