pub struct EcosystemResourceManager { /* private fields */ }
Expand description
Resource manager for the ecosystem
Implementations§
Source§impl EcosystemResourceManager
impl EcosystemResourceManager
Sourcepub fn allocate_resources(&mut self, module_name: &str) -> CoreResult<()>
pub fn allocate_resources(&mut self, module_name: &str) -> CoreResult<()>
Allocate resources for a module
Sourcepub fn deallocate_resources(&mut self, module_name: &str) -> CoreResult<()>
pub fn deallocate_resources(&mut self, module_name: &str) -> CoreResult<()>
Deallocate resources for a module
Sourcepub fn rebalance_resources(&mut self) -> CoreResult<()>
pub fn rebalance_resources(&mut self) -> CoreResult<()>
Rebalance resources based on current usage patterns
Sourcepub fn apply_predictive_scaling(&mut self) -> CoreResult<()>
pub fn apply_predictive_scaling(&mut self) -> CoreResult<()>
Apply predictive scaling based on historical patterns
Sourcepub fn get_resource_utilization(&self) -> ResourceUtilization
pub fn get_resource_utilization(&self) -> ResourceUtilization
Get current resource utilization
Sourcepub fn get_allocation(&self, module_name: &str) -> Option<&ResourceAllocation>
pub fn get_allocation(&self, module_name: &str) -> Option<&ResourceAllocation>
Get resource allocation for a specific module
Sourcepub fn update_allocation(
&mut self,
module_name: &str,
allocation: ResourceAllocation,
) -> CoreResult<()>
pub fn update_allocation( &mut self, module_name: &str, allocation: ResourceAllocation, ) -> CoreResult<()>
Update resource allocation for a module
Sourcepub fn get_available_resources(&self) -> &ResourcePool
pub fn get_available_resources(&self) -> &ResourcePool
Get available resources
Sourcepub fn set_available_resources(&mut self, resources: ResourcePool)
pub fn set_available_resources(&mut self, resources: ResourcePool)
Set available resources
Sourcepub fn optimize_allocation(
&mut self,
performance_data: &HashMap<String, ModulePerformanceMetrics>,
) -> CoreResult<()>
pub fn optimize_allocation( &mut self, performance_data: &HashMap<String, ModulePerformanceMetrics>, ) -> CoreResult<()>
Optimize resource allocation based on performance metrics
Sourcepub fn get_efficiency_metrics(&self) -> HashMap<String, f64>
pub fn get_efficiency_metrics(&self) -> HashMap<String, f64>
Get resource efficiency metrics
Sourcepub fn predict_resource_needs(
&self,
time_horizon: Duration,
) -> CoreResult<ResourcePool>
pub fn predict_resource_needs( &self, time_horizon: Duration, ) -> CoreResult<ResourcePool>
Predict future resource needs
Sourcepub fn handle_resource_shortage(&mut self) -> CoreResult<()>
pub fn handle_resource_shortage(&mut self) -> CoreResult<()>
Handle resource shortage scenarios
Trait Implementations§
Source§impl Debug for EcosystemResourceManager
impl Debug for EcosystemResourceManager
Auto Trait Implementations§
impl Freeze for EcosystemResourceManager
impl RefUnwindSafe for EcosystemResourceManager
impl Send for EcosystemResourceManager
impl Sync for EcosystemResourceManager
impl Unpin for EcosystemResourceManager
impl UnwindSafe for EcosystemResourceManager
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> 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