Skip to main content

StreamingOperations

Trait StreamingOperations 

Source
pub trait StreamingOperations {
    // Required methods
    fn process_streaming<P, F, R>(
        &self,
        path: P,
        options: &StreamOptions,
        processor: F,
    ) -> Result<R>
       where P: AsRef<Path>,
             F: FnMut(&mut dyn Read) -> Result<R>;
    fn process_batch_with_progress<P, F>(
        &self,
        paths: &[P],
        options: &StreamOptions,
        processor: F,
    ) -> Vec<Result<()>> 
       where P: AsRef<Path>,
             F: FnMut(&ExifTool, &Path, &ProgressTracker) -> Result<()>;
}
Expand description

流式处理 trait

Required Methods§

Source

fn process_streaming<P, F, R>( &self, path: P, options: &StreamOptions, processor: F, ) -> Result<R>
where P: AsRef<Path>, F: FnMut(&mut dyn Read) -> Result<R>,

流式处理大文件

Source

fn process_batch_with_progress<P, F>( &self, paths: &[P], options: &StreamOptions, processor: F, ) -> Vec<Result<()>>

批量处理带进度回调

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§