[][src]Module hdd::scsi::pages

Functions implementing typical log page queries

The reason why this is implemented as a wrapper type instead of a trait is because it needs to cache and keep around the list of log pages that this device supports.

Example

use hdd::Device;
use hdd::scsi::SCSIDevice;
use hdd::scsi::pages::{Pages, page_name};

...

let pages = dev.supported_pages().unwrap();

if pages.contains(0x03) {
	println!("{}:", page_name(0x03));
	println!("{:#?}\n", dev.read_error_counters()),
}

Structs

Date
DatesAndCycleCounters
InformationalException
SCSIPages

Use this struct to issue LOG SENSE command against the device and return interpreted log page responses.

SelfTest

Enums

Error
ErrorCounter
SelfTestResult

Functions

page_name

For a given page number page, return its name