Struct nvml_wrapper::struct_wrappers::device::MemoryInfo
source · pub struct MemoryInfo {
pub free: u64,
pub total: u64,
pub used: u64,
}
Expand description
Memory allocation information for a device (in bytes).
Fields§
§free: u64
Unallocated FB memory.
total: u64
Total installed FB memory.
used: u64
Allocated FB memory.
Note that the driver/GPU always sets aside a small amount of memory for bookkeeping.
Trait Implementations§
source§impl Clone for MemoryInfo
impl Clone for MemoryInfo
source§fn clone(&self) -> MemoryInfo
fn clone(&self) -> MemoryInfo
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 MemoryInfo
impl Debug for MemoryInfo
source§impl From<nvmlMemory_st> for MemoryInfo
impl From<nvmlMemory_st> for MemoryInfo
source§fn from(struct_: nvmlMemory_t) -> Self
fn from(struct_: nvmlMemory_t) -> Self
Converts to this type from the input type.
source§impl Hash for MemoryInfo
impl Hash for MemoryInfo
source§impl PartialEq for MemoryInfo
impl PartialEq for MemoryInfo
source§fn 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 ==
.impl Eq 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§
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