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
impl Eq for UsedGpuMemory
impl StructuralPartialEq for UsedGpuMemory
Auto Trait Implementations§
impl Freeze for UsedGpuMemory
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