Module providers

Module providers 

Source
Expand description

Copyright © 2025-2026 Wenze Wei. All Rights Reserved.

This file is part of DMSC. The DMSC project belongs to the Dunimd Team.

Licensed under the Apache License, Version 2.0 (the “License”); You may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

§Hardware Discovery Providers

This module provides hardware discovery providers for different device types. Each provider implements a common interface to detect and enumerate hardware on the current platform.

§Architecture

  • DMSCHardwareProvider: Trait defining the provider interface
  • CPUProvider: Discovers CPU devices
  • MemoryProvider: Discovers memory devices
  • StorageProvider: Discovers storage devices
  • NetworkProvider: Discovers network devices
  • GPUProvider: Discovers GPU devices
  • USBProvider: Discovers USB devices
  • ProviderRegistry: Manages all available providers

§Usage

use dmsc::device::discovery::providers::{ProviderRegistry, CPUProvider};

let mut registry = ProviderRegistry::new();
registry.register(Box::new(CPUProvider::new()));

// Discover all CPU devices
let cpus = registry.discover_devices("cpu").await;

Structs§

CPUProvider
CPU Discovery Provider
GPUProvider
GPU Discovery Provider
MemoryProvider
Memory Discovery Provider
NetworkProvider
Network Discovery Provider
ProviderRegistry
Provider Registry - manages all hardware discovery providers
StorageProvider
Storage Discovery Provider
USBProvider
USB Discovery Provider

Traits§

DMSCHardwareProvider
Trait for hardware discovery providers

Type Aliases§

DiscoveryResult
Result type for hardware discovery