Crate carbond_lib

Crate carbond_lib 

Source

Re-exports§

pub use core_affinity;
pub use rand;

Modules§

constants
data
macros
metrics

Enums§

FlagType
FLAGS //////////////////////////////////////////////////

Functions§

try_calculate_carbon_emission
Loads the current carbon intensity from the file system and calculates the carbon emission with a given energy.
try_calculate_carbon_emission_sync
Loads the current carbon intensity from the file system synchronously and calculates the carbon emission with a given energy.
try_load_battery_energy_intensity
Loads the embodied intensity of the CPU from the file system.
try_load_battery_energy_intensity_sync
Loads the embodied intensity of the CPU from the file system synchronously.
try_load_cpu_embodied_intensity
Loads the embodied intensity of the CPU from the file system.
try_load_cpu_embodied_intensity_sync
Loads the embodied intensity of the CPU from the file system synchronously.
try_load_flag
Loads the embodied intensity of the CPU from the file system.
try_load_flag_sync
Loads the embodied intensity of the CPU from the file system synchronously.
try_load_grid_intensity
Loads the carbon intensity of the grid, provided by external data providers. Since it is loaded from the file system API, this method can return an error.
try_load_grid_intensity_sync
Loads the carbon intensity of the grid synchronously, provided by external data providers. Since it is loaded from the file system API, this method can return an error.
try_load_psu_efficiency
Loads the current efficiency of the Power Supply Unit. Since it is loaded from the file system API, this method can return an error.
try_load_psu_efficiency_sync
Loads the current efficiency of the Power Supply Unit synchronously. Since it is loaded from the file system API, this method can return an error.
try_load_system_intensity
Loads the carbon intensity of the system, which comes either from the grid converted by the power supply or from the battery. Since it is loaded from the file system API, this method can return an error.
try_load_system_intensity_sync
Loads the carbon intensity of the system synchronously, which comes either from the grid converted by the power supply or from the battery. Since it is loaded from the file system API, this method can return an error.