Enum nvml_wrapper::enums::device::UsedGpuMemory
source · pub enum UsedGpuMemory {
Unavailable,
Used(u64),
}
Expand description
Represents possible variants for used GPU memory.
Variants§
Under WDDM, NVML_VALUE_NOT_AVAILABLE
is always reported because
Windows KMD manages all the memory, not the NVIDIA driver.
Used(u64)
Memory used in bytes.
Trait Implementations§
source§impl Clone for UsedGpuMemory
impl Clone for UsedGpuMemory
source§fn clone(&self) -> UsedGpuMemory
fn clone(&self) -> UsedGpuMemory
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 UsedGpuMemory
impl Debug for UsedGpuMemory
source§impl From<u64> for UsedGpuMemory
impl From<u64> for UsedGpuMemory
source§impl Hash for UsedGpuMemory
impl Hash for UsedGpuMemory
source§impl PartialEq for UsedGpuMemory
impl PartialEq for UsedGpuMemory
source§fn eq(&self, other: &UsedGpuMemory) -> bool
fn eq(&self, other: &UsedGpuMemory) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for UsedGpuMemory
impl StructuralPartialEq for UsedGpuMemory
Auto Trait Implementations§
impl RefUnwindSafe for UsedGpuMemory
impl Send for UsedGpuMemory
impl Sync for UsedGpuMemory
impl Unpin for UsedGpuMemory
impl UnwindSafe for UsedGpuMemory
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