darkwing::server::services::local_file_services

Trait LocalFileServiceTrait

source
pub trait LocalFileServiceTrait {
    // Required methods
    fn calc_hash_from_path<'life0, 'async_trait>(
        &'life0 self,
        path: String,
    ) -> Pin<Box<dyn Future<Output = AppResult<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn calc_hash<'life0, 'async_trait>(
        &'life0 self,
        file: File,
    ) -> Pin<Box<dyn Future<Output = AppResult<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn calc_diff<'life0, 'async_trait>(
        &'life0 self,
        first: String,
        second: String,
    ) -> Pin<Box<dyn Future<Output = AppResult<Patch>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn apply_patch<'life0, 'async_trait>(
        &'life0 self,
        base: String,
        delta: Patch,
        applied_path: String,
    ) -> Pin<Box<dyn Future<Output = AppResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn calc_hash_from_path<'life0, 'async_trait>( &'life0 self, path: String, ) -> Pin<Box<dyn Future<Output = AppResult<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn calc_hash<'life0, 'async_trait>( &'life0 self, file: File, ) -> Pin<Box<dyn Future<Output = AppResult<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn calc_diff<'life0, 'async_trait>( &'life0 self, first: String, second: String, ) -> Pin<Box<dyn Future<Output = AppResult<Patch>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn apply_patch<'life0, 'async_trait>( &'life0 self, base: String, delta: Patch, applied_path: String, ) -> Pin<Box<dyn Future<Output = AppResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§