pub struct BinaryExportConfig {
pub enable_parallel_processing: bool,
pub buffer_size: usize,
pub batch_size: usize,
pub enable_streaming: bool,
pub thread_count: Option<usize>,
}
Expand description
Performance optimization configuration
Fields§
§enable_parallel_processing: bool
Enable parallel processing for multiple formats
buffer_size: usize
Buffer size for I/O operations (default: 256KB)
batch_size: usize
Batch size for processing allocations (default: 2000)
enable_streaming: bool
Enable streaming processing for large files
thread_count: Option<usize>
Thread count for parallel processing (None = auto-detect)
Implementations§
Source§impl BinaryExportConfig
impl BinaryExportConfig
Sourcepub fn large_files() -> Self
pub fn large_files() -> Self
Create a configuration optimized for large files
Sourcepub fn parallel_processing(self, enabled: bool) -> Self
pub fn parallel_processing(self, enabled: bool) -> Self
Enable or disable parallel processing
Sourcepub fn buffer_size(self, size: usize) -> Self
pub fn buffer_size(self, size: usize) -> Self
Set buffer size for I/O operations
Sourcepub fn batch_size(self, size: usize) -> Self
pub fn batch_size(self, size: usize) -> Self
Set batch size for processing allocations
Sourcepub fn thread_count(self, count: Option<usize>) -> Self
pub fn thread_count(self, count: Option<usize>) -> Self
Set thread count for parallel processing (None for auto-detect)
Trait Implementations§
Source§impl Clone for BinaryExportConfig
impl Clone for BinaryExportConfig
Source§fn clone(&self) -> BinaryExportConfig
fn clone(&self) -> BinaryExportConfig
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 BinaryExportConfig
impl Debug for BinaryExportConfig
Auto Trait Implementations§
impl Freeze for BinaryExportConfig
impl RefUnwindSafe for BinaryExportConfig
impl Send for BinaryExportConfig
impl Sync for BinaryExportConfig
impl Unpin for BinaryExportConfig
impl UnwindSafe for BinaryExportConfig
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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