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§
Sourcefn process_streaming<P, F, R>(
&self,
path: P,
options: &StreamOptions,
processor: F,
) -> Result<R>
fn process_streaming<P, F, R>( &self, path: P, options: &StreamOptions, processor: F, ) -> Result<R>
流式处理大文件
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.