Skip to main content

DeviceHardware

Trait DeviceHardware 

Source
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§

Source

fn get_memory_info(&self) -> Result<u64, PlatformError>

Get total physical memory in bytes.

Source

fn get_cpu_count(&self) -> usize

Get the number of logical CPU cores available.

Source

fn get_storage_total_bytes(&self) -> Result<u64, PlatformError>

Get total ROM storage in bytes.

Implementors§