A device path is a very flexible packed data structure for storing paths to many kinds of device. Note that these device paths are not the same thing as file system paths, although they can include file system paths. Like handles, device paths can be used to uniquely identify resources such as consoles, mice, disks, partitions, and more. Unlike handles, which are essentially opaque pointers, device paths are variable-length structures that contain parseable information.
uefi::proto::device_path module documentation describes the
details of how device paths are encoded.
Device paths can also be converted to and from human-readable text representations that look like this:
uefi::proto::device_path::text for details.