pub struct FileIOConfig {
pub default_chunk_size: usize,
pub max_mmap_size: u64,
pub enable_memory_mapping: bool,
pub buffer_size: usize,
pub verify_checksums: bool,
pub max_concurrent_operations: usize,
}Expand description
Configuration for file I/O operations
This struct encapsulates all configuration parameters for file I/O operations, providing fine-grained control over performance, memory usage, and behavior.
§Key Configuration Areas
- Chunk Processing: Default chunk size and chunking behavior
- Memory Management: Memory mapping thresholds and buffer sizes
- Concurrency: Limits on concurrent operations
- Verification: Checksum verification settings
- Performance: Various performance optimization settings
§Examples
Fields§
§default_chunk_size: usizeDefault chunk size for reading files
max_mmap_size: u64Maximum file size for memory mapping (in bytes)
enable_memory_mapping: boolWhether to use memory mapping for large files
buffer_size: usizeBuffer size for streaming operations
verify_checksums: boolWhether to verify checksums during read operations
max_concurrent_operations: usizeMaximum number of concurrent file operations
Trait Implementations§
Source§impl Clone for FileIOConfig
impl Clone for FileIOConfig
Source§fn clone(&self) -> FileIOConfig
fn clone(&self) -> FileIOConfig
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 FileIOConfig
impl Debug for FileIOConfig
Auto Trait Implementations§
impl Freeze for FileIOConfig
impl RefUnwindSafe for FileIOConfig
impl Send for FileIOConfig
impl Sync for FileIOConfig
impl Unpin for FileIOConfig
impl UnwindSafe for FileIOConfig
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