Struct nvml_wrapper::struct_wrappers::device::BAR1MemoryInfo
source · pub struct BAR1MemoryInfo {
pub free: u64,
pub total: u64,
pub used: u64,
}
Expand description
BAR1 memory allocation information for a device (in bytes)
Fields§
§free: u64
Unallocated
total: u64
Total memory
used: u64
Allocated
Trait Implementations§
source§impl Clone for BAR1MemoryInfo
impl Clone for BAR1MemoryInfo
source§fn clone(&self) -> BAR1MemoryInfo
fn clone(&self) -> BAR1MemoryInfo
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 BAR1MemoryInfo
impl Debug for BAR1MemoryInfo
source§impl From<nvmlBAR1Memory_st> for BAR1MemoryInfo
impl From<nvmlBAR1Memory_st> for BAR1MemoryInfo
source§fn from(struct_: nvmlBAR1Memory_t) -> Self
fn from(struct_: nvmlBAR1Memory_t) -> Self
Converts to this type from the input type.
source§impl Hash for BAR1MemoryInfo
impl Hash for BAR1MemoryInfo
source§impl PartialEq for BAR1MemoryInfo
impl PartialEq for BAR1MemoryInfo
source§fn eq(&self, other: &BAR1MemoryInfo) -> bool
fn eq(&self, other: &BAR1MemoryInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BAR1MemoryInfo
impl StructuralPartialEq for BAR1MemoryInfo
Auto Trait Implementations§
impl RefUnwindSafe for BAR1MemoryInfo
impl Send for BAR1MemoryInfo
impl Sync for BAR1MemoryInfo
impl Unpin for BAR1MemoryInfo
impl UnwindSafe for BAR1MemoryInfo
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