rs-machineid 0.2.0

Get the unique machine ID of any host (without admin privileges).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use thiserror::Error;

/// Error type for machine ID operations.
#[derive(Error, Debug)]
pub enum MachineIdError {
    #[error("Failed to get machine ID: {0}")]
    IoError(#[from] std::io::Error),

    #[error("Machine ID not found")]
    NotFound,

    #[error("Platform not supported")]
    UnsupportedPlatform,
}