Crate blockdev

Crate blockdev 

Source

Structs§

BlockDevice
Represents a block device as output by lsblk.
BlockDevices
Represents the entire JSON output produced by lsblk --json.

Functions§

get_devices
Runs the lsblk --json command, captures its output, and parses it into a BlockDevices struct. If the command fails or the output cannot be parsed, an error is returned.