Returns a device based on its id and type.
impl Device { fn from_id(id: u32, ty: DeviceType) -> Device }
The id of the device.
The type of the device.