#[non_exhaustive]
#[repr(i32)]
pub enum PhysicalDeviceType {
IntegratedGpu,
DiscreteGpu,
VirtualGpu,
Cpu,
Other,
}
Expand description
Type of a physical device.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IntegratedGpu
The device is an integrated GPU.
DiscreteGpu
The device is a discrete GPU.
VirtualGpu
The device is a virtual GPU.
Cpu
The device is a CPU.
Other
The device is something else.
Trait Implementations
sourceimpl Clone for PhysicalDeviceType
impl Clone for PhysicalDeviceType
sourcefn clone(&self) -> PhysicalDeviceType
fn clone(&self) -> PhysicalDeviceType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PhysicalDeviceType
impl Debug for PhysicalDeviceType
sourceimpl Default for PhysicalDeviceType
impl Default for PhysicalDeviceType
sourceimpl From<PhysicalDeviceType> for PhysicalDeviceType
impl From<PhysicalDeviceType> for PhysicalDeviceType
sourcefn from(val: PhysicalDeviceType) -> Self
fn from(val: PhysicalDeviceType) -> Self
Converts to this type from the input type.
sourceimpl Hash for PhysicalDeviceType
impl Hash for PhysicalDeviceType
sourceimpl PartialEq<PhysicalDeviceType> for PhysicalDeviceType
impl PartialEq<PhysicalDeviceType> for PhysicalDeviceType
sourcefn eq(&self, other: &PhysicalDeviceType) -> bool
fn eq(&self, other: &PhysicalDeviceType) -> bool
impl Copy for PhysicalDeviceType
impl Eq for PhysicalDeviceType
impl StructuralEq for PhysicalDeviceType
impl StructuralPartialEq for PhysicalDeviceType
Auto Trait Implementations
impl RefUnwindSafe for PhysicalDeviceType
impl Send for PhysicalDeviceType
impl Sync for PhysicalDeviceType
impl Unpin for PhysicalDeviceType
impl UnwindSafe for PhysicalDeviceType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more