Enum rust_gpu_tools::UniqueId
source · [−]pub enum UniqueId {
PciId(PciId),
Uuid(DeviceUuid),
}Expand description
Unique identifier that can either be a PCI ID or a UUID.
Variants
PciId(PciId)
ID based on the PCI bus.
Uuid(DeviceUuid)
ID based on a globally unique identifier.
Trait Implementations
If the string contains a dash, it’s interpreted as UUID, else it’s interpreted as PCI ID.
Auto Trait Implementations
impl RefUnwindSafe for UniqueId
impl UnwindSafe for UniqueId
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self