pub trait SyncFolderSource: Debug {
// Required method
fn get_file_content(
&self,
file_name: &Path,
) -> Result<(Vec<u8>, Option<String>), FetchError>;
}Required Methods§
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§
impl SyncFolderSource for DataSource
impl SyncFolderSource for TarFile
Available on crate feature
tar only.