pub struct FileProcessorConfig {
pub max_file_size: u64,
pub processing_chunk_size: usize,
pub use_memory_mapping: bool,
pub max_concurrent_files: usize,
pub verify_integrity: bool,
pub temp_dir: Option<PathBuf>,
}Expand description
Configuration for file processing operations
This struct encapsulates all configuration parameters for file processing operations, providing control over performance, resource usage, and behavior.
§Key Configuration Areas
- File Limits: Maximum file size and processing constraints
- Chunk Processing: Chunk size and chunking behavior
- Memory Management: Memory mapping and resource allocation
- Concurrency: Parallel processing and resource limits
- Integrity: File integrity verification settings
- Storage: Temporary file and directory management
§Examples
Fields§
§max_file_size: u64Maximum file size to process (in bytes)
processing_chunk_size: usizePreferred chunk size for processing
use_memory_mapping: boolWhether to use memory mapping for large files
max_concurrent_files: usizeMaximum number of concurrent file operations
verify_integrity: boolWhether to verify file integrity before processing
temp_dir: Option<PathBuf>Temporary directory for intermediate files
Trait Implementations§
Source§impl Clone for FileProcessorConfig
impl Clone for FileProcessorConfig
Source§fn clone(&self) -> FileProcessorConfig
fn clone(&self) -> FileProcessorConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileProcessorConfig
impl Debug for FileProcessorConfig
Auto Trait Implementations§
impl Freeze for FileProcessorConfig
impl RefUnwindSafe for FileProcessorConfig
impl Send for FileProcessorConfig
impl Sync for FileProcessorConfig
impl Unpin for FileProcessorConfig
impl UnwindSafe for FileProcessorConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more