Struct libatasmart::Disk [] [src]

pub struct Disk {
    pub disk: PathBuf,
    // some fields omitted
}

Our ata smart disk

Fields

The path in the filesystem to the hard drive

Methods

impl Disk
[src]

[src]

This will initialize a new Disk by asking libatasmart to open it. Note that this requires root permissions usually to succeed.

[src]

Returns a u64 representing the size of the disk in bytes.

[src]

Returns a bool of true if sleep mode is supported, false otherwise.

[src]

Returns a u64 representing the power on time in milliseconds

[src]

Returns a u64 representing the number of power on cycles

[src]

Returns a u64 representing the number of bad sections on the disk

[src]

Returns a u64 representing the mkelvin of the disk

[src]

Returns true if the disk passed smart, false otherwise.

[src]

This will dump all available information to stdout about the drive

[src]

[src]

Query the device and return whether or not smart is supported on it

[src]

[src]

Trait Implementations

impl Drop for Disk
[src]

[src]

Executes the destructor for this type. Read more