Skip to main content

SyncFolderSource

Trait SyncFolderSource 

Source
pub trait SyncFolderSource: Debug {
    // Required method
    fn get_file_content(
        &self,
        file_name: &Path,
    ) -> Result<(Vec<u8>, Option<String>), FetchError>;
}

Required Methods§

Source

fn get_file_content( &self, file_name: &Path, ) -> Result<(Vec<u8>, Option<String>), FetchError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl SyncFolderSource for DataSource

Source§

impl SyncFolderSource for TarFile

Available on crate feature tar only.