devices 0.5.0

A cross-platform library for retrieving information about connected devices.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use thiserror::Error;

/// An error that could be returned when retrieving device information.
#[derive(Error, Debug)]
pub enum Error {
    #[error("this platform is unsupported")]
    /// The platform is unsupported.
    UnsupportedPlatform,

    #[error("could not retrieve device information")]
    /// An OS issue has occurred.
    CommandError,

    #[error("could not parse device information")]
    /// The result returned properly but could not be parsed.
    ParseError,
}