pub struct GreenComputingManager { /* private fields */ }Expand description
Green computing manager for sustainable distributed training
Implementations§
Source§impl GreenComputingManager
impl GreenComputingManager
Sourcepub fn new(config: GreenComputingConfig) -> TorshResult<Self>
pub fn new(config: GreenComputingConfig) -> TorshResult<Self>
Create a new green computing manager
Sourcepub fn initialize_device(&self, device_id: String) -> TorshResult<()>
pub fn initialize_device(&self, device_id: String) -> TorshResult<()>
Initialize green computing for a device
Sourcepub fn update_device_energy(
&self,
device_id: &str,
power_watts: f64,
operations: f64,
) -> TorshResult<()>
pub fn update_device_energy( &self, device_id: &str, power_watts: f64, operations: f64, ) -> TorshResult<()>
Update energy consumption for a device
Sourcepub fn get_sustainability_metrics(&self) -> TorshResult<SustainabilityMetrics>
pub fn get_sustainability_metrics(&self) -> TorshResult<SustainabilityMetrics>
Get current sustainability metrics
Sourcepub fn optimize_training_schedule(
&self,
) -> TorshResult<TrainingScheduleRecommendation>
pub fn optimize_training_schedule( &self, ) -> TorshResult<TrainingScheduleRecommendation>
Optimize training schedule based on renewable energy availability
Sourcepub async fn generate_sustainability_report(
&self,
) -> TorshResult<SustainabilityReport>
pub async fn generate_sustainability_report( &self, ) -> TorshResult<SustainabilityReport>
Generate sustainability report
Sourcepub async fn start_monitoring(&self) -> TorshResult<()>
pub async fn start_monitoring(&self) -> TorshResult<()>
Start automatic sustainability monitoring
Auto Trait Implementations§
impl Freeze for GreenComputingManager
impl RefUnwindSafe for GreenComputingManager
impl Send for GreenComputingManager
impl Sync for GreenComputingManager
impl Unpin for GreenComputingManager
impl UnsafeUnpin for GreenComputingManager
impl UnwindSafe for GreenComputingManager
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