var searchIndex = {}; searchIndex["libatasmart"] = {"doc":"A library to interface with libatasmart-sys. For more information about libatasmart-sys see\n[libatasmart-sys](https://github.com/cholcombe973/libatasmart-sys)\nThis library is useful for gathering ata smart information from your hard drives concerning\ntheir remaining lifetime. The underlying libatasmart doesn't expose every possible metric like\nsmartmontools but it does expose a few important ones like bad sector count and overall status.\nThis also has the advantage of avoiding CLI calls and scraping the text output which makes it\nmore reliable and also a lot more performant!","items":[[3,"Disk","libatasmart","Our ata smart disk",null,null],[12,"disk","","The path in the filesystem to the hard drive",0,null],[11,"new","","This will initialize a new Disk by asking libatasmart to open it.\nNote that this requires root permissions usually to succeed.",0,{"inputs":[{"name":"path"}],"output":{"name":"result"}}],[11,"get_disk_size","","Returns a u64 representing the size of the disk in bytes.",0,null],[11,"check_sleep_mode","","Returns a bool of true if sleep mode is supported, false otherwise.",0,null],[11,"get_power_on","","Returns a u64 representing the power on time in milliseconds",0,null],[11,"get_power_cycle_count","","Returns a u64 representing the number of power on cycles",0,null],[11,"get_bad_sectors","","Returns a u64 representing the number of bad sections on the disk",0,null],[11,"get_temperature","","Returns a u64 representing the mkelvin of the disk",0,null],[11,"get_smart_status","","Returns true if the disk passed smart, false otherwise.",0,null],[11,"dump","","This will dump all available information to stdout about the drive",0,null],[11,"identify_is_available","","",0,null],[11,"smart_is_available","","Query the device and return whether or not smart is supported on it",0,null],[11,"execute_smart_self_test","","",0,null],[11,"smart_get_overall","","",0,null]],"paths":[[3,"Disk"]]}; initSearch(searchIndex);