pub struct FastExportConfigBuilder { /* private fields */ }
Expand description
Configuration builder, for conveniently creating custom configs
Implementations§
Source§impl FastExportConfigBuilder
impl FastExportConfigBuilder
Sourcepub fn data_localization(self, enabled: bool) -> Self
pub fn data_localization(self, enabled: bool) -> Self
Enable or disable data localization
Sourcepub fn cache_ttl_ms(self, ttl_ms: u64) -> Self
pub fn cache_ttl_ms(self, ttl_ms: u64) -> Self
Set data cache ttl in ms
Sourcepub fn shard_size(self, size: usize) -> Self
pub fn shard_size(self, size: usize) -> Self
sSet shard size
Sourcepub fn parallel_threshold(self, threshold: usize) -> Self
pub fn parallel_threshold(self, threshold: usize) -> Self
Set parallel threshold
Sourcepub fn max_threads(self, threads: Option<usize>) -> Self
pub fn max_threads(self, threads: Option<usize>) -> Self
Set max threads
Sourcepub fn buffer_size(self, size: usize) -> Self
pub fn buffer_size(self, size: usize) -> Self
Set buffer size
Sourcepub fn performance_monitoring(self, enabled: bool) -> Self
pub fn performance_monitoring(self, enabled: bool) -> Self
Enable or disable performance monitoring
Sourcepub fn verbose_logging(self, enabled: bool) -> Self
pub fn verbose_logging(self, enabled: bool) -> Self
Enable or disable verbose logging
Sourcepub fn progress_config(self, config: ProgressConfig) -> Self
pub fn progress_config(self, config: ProgressConfig) -> Self
Set progress config
Sourcepub fn progress_monitoring(self, enabled: bool) -> Self
pub fn progress_monitoring(self, enabled: bool) -> Self
Enable or disable progress monitoring
Sourcepub fn error_recovery_config(self, config: RecoveryConfig) -> Self
pub fn error_recovery_config(self, config: RecoveryConfig) -> Self
Set error recovery config
Sourcepub fn validation_config(self, config: ValidationConfig) -> Self
pub fn validation_config(self, config: ValidationConfig) -> Self
Set validation config
Sourcepub fn resource_monitoring(self, enabled: bool) -> Self
pub fn resource_monitoring(self, enabled: bool) -> Self
Enable or disable resource monitoring
Sourcepub fn memory_limit_mb(self, limit: usize) -> Self
pub fn memory_limit_mb(self, limit: usize) -> Self
Set memory limit in MB
Sourcepub fn disk_limit_mb(self, limit: usize) -> Self
pub fn disk_limit_mb(self, limit: usize) -> Self
Set disk limit in MB
Sourcepub fn cpu_limit_percent(self, limit: f64) -> Self
pub fn cpu_limit_percent(self, limit: f64) -> Self
Set CPU limit in percent
Sourcepub fn build(self) -> FastExportConfig
pub fn build(self) -> FastExportConfig
Build config
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FastExportConfigBuilder
impl RefUnwindSafe for FastExportConfigBuilder
impl Send for FastExportConfigBuilder
impl Sync for FastExportConfigBuilder
impl Unpin for FastExportConfigBuilder
impl UnwindSafe for FastExportConfigBuilder
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> 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