pub enum Id {
Known(&'static KnownId),
Unknown(RawIds),
}
Expand description
Represents a device’s vendor ID and [device ID].
A known ID.
This variant is returned if the device’s vendor ID and device ID exist
in the PCI ID database, and information such as a string representing
the name of the vendor or device can be returned.
An unknown ID.
This variant is returned if the device’s vendor ID or device ID were not
found in the PCI ID database.
This is not necessarily an error, as it may indicate that the database
has not been updated to include a newer device, the device is a
prototype that has not yet been registered with PCI-SIG, or the device
is not a “real” device but an emulated device provided by a virtual
machine. An unknown device may still be used, provided that its
Class
, Subclass
, and prog IF provide sufficient information to
program that device.
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
Formats the value using the given formatter.
Read more
Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
🔬This is a nightly-only experimental API. (clone_to_uninit
)
Performs copy-assignment from
self
to
dst
.
Read more
Returns the argument unchanged.
Instruments this type with the provided [
Span
], returning an
Instrumented
wrapper.
Read more
Instruments this type with the provided [
Span
], returning an
Instrumented
wrapper.
Read more
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
Converts the given value to a
String
.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.