pub struct ScalingEngine { /* private fields */ }
Expand description
Main scaling engine
Implementations§
Source§impl ScalingEngine
impl ScalingEngine
Sourcepub async fn new(config: ScalingConfig) -> ScalingResult<Self>
pub async fn new(config: ScalingConfig) -> ScalingResult<Self>
Create a new scaling engine with the given configuration
Sourcepub async fn with_defaults() -> ScalingResult<Self>
pub async fn with_defaults() -> ScalingResult<Self>
Create a scaling engine with default configuration
Sourcepub fn with_config(config: ScalingConfig) -> Self
pub fn with_config(config: ScalingConfig) -> Self
Create a scaling engine with the given configuration
Sourcepub async fn process_repository(
&mut self,
path: &Path,
) -> ScalingResult<ProcessingResult>
pub async fn process_repository( &mut self, path: &Path, ) -> ScalingResult<ProcessingResult>
Process a repository with scaling optimizations
Sourcepub async fn benchmark(
&mut self,
path: &Path,
iterations: usize,
) -> ScalingResult<Vec<BenchmarkResult>>
pub async fn benchmark( &mut self, path: &Path, iterations: usize, ) -> ScalingResult<Vec<BenchmarkResult>>
Run performance benchmarks
Sourcepub fn config(&self) -> &ScalingConfig
pub fn config(&self) -> &ScalingConfig
Get current configuration
Auto Trait Implementations§
impl Freeze for ScalingEngine
impl RefUnwindSafe for ScalingEngine
impl Send for ScalingEngine
impl Sync for ScalingEngine
impl Unpin for ScalingEngine
impl UnwindSafe for ScalingEngine
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