pub struct FileProcessingTask {
pub input_path: PathBuf,
pub output_path: Option<PathBuf>,
pub operation: ProcessingOperation,
}
Expand description
Task for processing files (convert, sync, match, validate).
Represents a file processing operation that can be executed asynchronously in the parallel processing system.
Fields§
§input_path: PathBuf
Path to the input file to be processed
output_path: Option<PathBuf>
Optional output path for the processed file
operation: ProcessingOperation
The specific operation to perform on the file
Implementations§
Trait Implementations§
Source§impl Task for FileProcessingTask
impl Task for FileProcessingTask
Source§fn execute<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = TaskResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = TaskResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Executes the task and returns the result.
Source§fn estimated_duration(&self) -> Option<Duration>
fn estimated_duration(&self) -> Option<Duration>
Returns an estimated duration for the task execution.
Source§fn description(&self) -> String
fn description(&self) -> String
Returns a human-readable description of the task.
Auto Trait Implementations§
impl Freeze for FileProcessingTask
impl RefUnwindSafe for FileProcessingTask
impl Send for FileProcessingTask
impl Sync for FileProcessingTask
impl Unpin for FileProcessingTask
impl UnwindSafe for FileProcessingTask
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more