1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
pub use ;
/// A package for collect information about disk drive means SSD/HDD etc of a windows operating system.
///
/// You can collect disk information from any device with just a function call. you will be able to collect the `disk name`, `disk model`, `disk size` and `disk serial number` information with this package.
///
/// ### Functions
/// `drive_name()` for collect the name of system disk drive. </br>
/// `drive_model()` for collect the model of system disk drive. </br>
/// `drive_size()` for collect the total capacity of system disk drive. </br>
/// `drive_serial_number()` for collect the serial number of system disk drive. </br>
///
/// ### Example
/// We are printing here the total capacity information about the disk drive of a windows system.
///
/// ```
/// src/main.rs
/// --------------
///
/// mod system_diskinfo;
/// use system_diskinfo::{driveSize};
///
/// fn main() {
/// let size = driveSize::drive_size();
/// println!("Disk Size: {}", size);
/// }
/// ```
/// ```
/// --- Output ---
///
/// **Disk Size 512105932800**
/// ```
///
/// The function `drive_size()` that we called in the main function in main.rs, we implemented it in the file called `drive_size.rs`, you will find the file on `src/drive/drive_size.rs`.