Enum nvml_wrapper::enum_wrappers::device::MemoryLocation
source · pub enum MemoryLocation {
L1Cache,
L2Cache,
Device,
RegisterFile,
Texture,
Shared,
Cbu,
SRAM,
}
Expand description
Memory locations. See Device.memory_error_counter()
.
Variants§
L1Cache
GPU L1 cache.
L2Cache
GPU L2 cache.
Device
GPU device memory.
RegisterFile
GPU register file.
Texture
GPU texture memory.
Shared memory.
Cbu
SRAM
SRAM present on Turing and above.
Implementations§
source§impl MemoryLocation
impl MemoryLocation
sourcepub fn as_c(&self) -> nvmlMemoryLocation_enum
pub fn as_c(&self) -> nvmlMemoryLocation_enum
Returns the C enum variant equivalent for the given Rust enum variant
Trait Implementations§
source§impl Clone for MemoryLocation
impl Clone for MemoryLocation
source§fn clone(&self) -> MemoryLocation
fn clone(&self) -> MemoryLocation
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 MemoryLocation
impl Debug for MemoryLocation
source§impl Hash for MemoryLocation
impl Hash for MemoryLocation
source§impl PartialEq for MemoryLocation
impl PartialEq for MemoryLocation
source§fn eq(&self, other: &MemoryLocation) -> bool
fn eq(&self, other: &MemoryLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u32> for MemoryLocation
impl TryFrom<u32> for MemoryLocation
impl Eq for MemoryLocation
impl StructuralPartialEq for MemoryLocation
Auto Trait Implementations§
impl RefUnwindSafe for MemoryLocation
impl Send for MemoryLocation
impl Sync for MemoryLocation
impl Unpin for MemoryLocation
impl UnwindSafe for MemoryLocation
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