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
Shared memory.
Cbu
SRAM
SRAM present on Turing and above.
Implementations
sourceimpl 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
sourceimpl Clone for MemoryLocation
impl Clone for MemoryLocation
sourcefn clone(&self) -> MemoryLocation
fn clone(&self) -> MemoryLocation
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 more
sourceimpl Debug for MemoryLocation
impl Debug for MemoryLocation
sourceimpl Hash for MemoryLocation
impl Hash for MemoryLocation
sourceimpl PartialEq<MemoryLocation> for MemoryLocation
impl PartialEq<MemoryLocation> for MemoryLocation
sourceimpl TryFrom<u32> for MemoryLocation
impl TryFrom<u32> for MemoryLocation
impl Eq for MemoryLocation
impl StructuralEq 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more