pub trait DeviceHardware:
Send
+ Sync
+ 'static {
// Provided methods
fn get_memory_info(&self) -> Result<u64, PlatformError> { ... }
fn get_cpu_count(&self) -> usize { ... }
fn get_storage_total_bytes(&self) -> Result<u64, PlatformError> { ... }
}Provided Methods§
Sourcefn get_memory_info(&self) -> Result<u64, PlatformError>
fn get_memory_info(&self) -> Result<u64, PlatformError>
Get total physical memory in bytes.
Sourcefn get_cpu_count(&self) -> usize
fn get_cpu_count(&self) -> usize
Get the number of logical CPU cores available.
Sourcefn get_storage_total_bytes(&self) -> Result<u64, PlatformError>
fn get_storage_total_bytes(&self) -> Result<u64, PlatformError>
Get total ROM storage in bytes.