Struct nvml_wrapper::struct_wrappers::device::MemoryInfo
source · [−]Expand description
Memory allocation information for a device (in bytes).
Fields
free: u64Unallocated FB memory.
total: u64Total installed FB memory.
used: u64Allocated FB memory.
Note that the driver/GPU always sets aside a small amount of memory for bookkeeping.
Trait Implementations
sourceimpl Clone for MemoryInfo
impl Clone for MemoryInfo
sourcefn clone(&self) -> MemoryInfo
fn clone(&self) -> MemoryInfo
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 MemoryInfo
impl Debug for MemoryInfo
sourceimpl From<nvmlMemory_st> for MemoryInfo
impl From<nvmlMemory_st> for MemoryInfo
sourcefn from(struct_: nvmlMemory_t) -> Self
fn from(struct_: nvmlMemory_t) -> Self
Converts to this type from the input type.
sourceimpl Hash for MemoryInfo
impl Hash for MemoryInfo
sourceimpl PartialEq<MemoryInfo> for MemoryInfo
impl PartialEq<MemoryInfo> for MemoryInfo
sourcefn eq(&self, other: &MemoryInfo) -> bool
fn eq(&self, other: &MemoryInfo) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &MemoryInfo) -> bool
fn ne(&self, other: &MemoryInfo) -> bool
This method tests for !=.
impl Eq for MemoryInfo
impl StructuralEq for MemoryInfo
impl StructuralPartialEq for MemoryInfo
Auto Trait Implementations
impl RefUnwindSafe for MemoryInfo
impl Send for MemoryInfo
impl Sync for MemoryInfo
impl Unpin for MemoryInfo
impl UnwindSafe for MemoryInfo
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