Enum nvml_wrapper::enum_wrappers::device::DriverModel
source · pub enum DriverModel {
WDDM,
WDM,
}
Expand description
Driver models, Windows only.
Variants§
WDDM
GPU treated as a display device.
WDM
(TCC model) GPU treated as a generic device (recommended).
Implementations§
source§impl DriverModel
impl DriverModel
sourcepub fn as_c(&self) -> nvmlDriverModel_enum
pub fn as_c(&self) -> nvmlDriverModel_enum
Returns the C enum variant equivalent for the given Rust enum variant
Trait Implementations§
source§impl Clone for DriverModel
impl Clone for DriverModel
source§fn clone(&self) -> DriverModel
fn clone(&self) -> DriverModel
Returns a copy of the value. Read more
1.0.0 · 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 DriverModel
impl Debug for DriverModel
source§impl Hash for DriverModel
impl Hash for DriverModel
source§impl PartialEq for DriverModel
impl PartialEq for DriverModel
source§fn eq(&self, other: &DriverModel) -> bool
fn eq(&self, other: &DriverModel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u32> for DriverModel
impl TryFrom<u32> for DriverModel
impl Eq for DriverModel
impl StructuralPartialEq for DriverModel
Auto Trait Implementations§
impl RefUnwindSafe for DriverModel
impl Send for DriverModel
impl Sync for DriverModel
impl Unpin for DriverModel
impl UnwindSafe for DriverModel
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