#[non_exhaustive]pub struct PhysicalDevice {
pub pci_address: Option<PciAddress>,
pub luid: Option<AdapterLuid>,
pub registry_entry_id: Option<RegistryEntryId>,
pub vendor: Option<PciVendor>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pci_address: Option<PciAddress>§luid: Option<AdapterLuid>§registry_entry_id: Option<RegistryEntryId>§vendor: Option<PciVendor>Implementations§
Source§impl PhysicalDevice
impl PhysicalDevice
pub fn is_same_card(&self, other: &PhysicalDevice) -> bool
pub fn fill_from(&mut self, other: &PhysicalDevice)
Trait Implementations§
Source§impl Clone for PhysicalDevice
impl Clone for PhysicalDevice
Source§fn clone(&self) -> PhysicalDevice
fn clone(&self) -> PhysicalDevice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PhysicalDevice
impl Debug for PhysicalDevice
Source§impl Default for PhysicalDevice
impl Default for PhysicalDevice
Source§fn default() -> PhysicalDevice
fn default() -> PhysicalDevice
Returns the “default value” for a type. Read more
impl Eq for PhysicalDevice
Source§impl Hash for PhysicalDevice
impl Hash for PhysicalDevice
Source§impl PartialEq for PhysicalDevice
impl PartialEq for PhysicalDevice
impl StructuralPartialEq for PhysicalDevice
Auto Trait Implementations§
impl Freeze for PhysicalDevice
impl RefUnwindSafe for PhysicalDevice
impl Send for PhysicalDevice
impl Sync for PhysicalDevice
impl Unpin for PhysicalDevice
impl UnsafeUnpin for PhysicalDevice
impl UnwindSafe for PhysicalDevice
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.