pub struct ExportModeManager { /* private fields */ }
Expand description
Export mode manager for automatic mode selection and configuration management
Implementations§
Source§impl ExportModeManager
impl ExportModeManager
Sourcepub fn with_settings(
default_mode: ExportMode,
auto_threshold: usize,
performance_threshold_ms: u64,
) -> Self
pub fn with_settings( default_mode: ExportMode, auto_threshold: usize, performance_threshold_ms: u64, ) -> Self
Create export mode manager with custom settings
Sourcepub fn determine_optimal_mode(&self, data_size: usize) -> ExportMode
pub fn determine_optimal_mode(&self, data_size: usize) -> ExportMode
Determine optimal export mode based on data size
Sourcepub fn create_config_for_mode(&self, mode: ExportMode) -> ExportConfig
pub fn create_config_for_mode(&self, mode: ExportMode) -> ExportConfig
Create export configuration for the given mode
Sourcepub fn create_auto_config(&self, data_size: usize) -> ExportConfig
pub fn create_auto_config(&self, data_size: usize) -> ExportConfig
Create export configuration with automatic mode selection
Sourcepub fn optimize_config(
&self,
config: ExportConfig,
data_size: usize,
) -> (ExportConfig, Vec<String>)
pub fn optimize_config( &self, config: ExportConfig, data_size: usize, ) -> (ExportConfig, Vec<String>)
Validate and optimize configuration based on system constraints
Sourcepub fn get_settings(&self) -> (ExportMode, usize, u64)
pub fn get_settings(&self) -> (ExportMode, usize, u64)
Get current settings
Trait Implementations§
Source§impl Clone for ExportModeManager
impl Clone for ExportModeManager
Source§fn clone(&self) -> ExportModeManager
fn clone(&self) -> ExportModeManager
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 ExportModeManager
impl Debug for ExportModeManager
Auto Trait Implementations§
impl Freeze for ExportModeManager
impl RefUnwindSafe for ExportModeManager
impl Send for ExportModeManager
impl Sync for ExportModeManager
impl Unpin for ExportModeManager
impl UnwindSafe for ExportModeManager
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