lfs_core/device_id/mod.rs
1use snafu::prelude::*;
2
3#[cfg(unix)]
4mod unix;
5#[cfg(windows)]
6mod windows;
7
8#[cfg(unix)]
9pub use unix::DeviceId;
10#[cfg(windows)]
11pub use windows::DeviceId;
12
13#[derive(Debug, Snafu)]
14#[snafu(display("Could not parse {string} as a device id"))]
15pub struct ParseDeviceIdError {
16 string: String,
17}