pub struct GpuInstanceInfo {
pub device: Device,
pub id: u32,
pub profile_id: u32,
pub placement: GpuInstancePlacement,
}Expand description
Information about a GPU instance.
Fields§
§device: DeviceParent device for the GPU instance.
id: u32GPU instance ID.
profile_id: u32GPU instance profile ID.
placement: GpuInstancePlacementPlacement of the GPU instance within the parent device.
Trait Implementations§
Source§impl Clone for GpuInstanceInfo
impl Clone for GpuInstanceInfo
Source§fn clone(&self) -> GpuInstanceInfo
fn clone(&self) -> GpuInstanceInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GpuInstanceInfo
impl Debug for GpuInstanceInfo
Source§impl From<nvmlGpuInstanceInfo_st> for GpuInstanceInfo
impl From<nvmlGpuInstanceInfo_st> for GpuInstanceInfo
Source§fn from(value: nvmlGpuInstanceInfo_t) -> Self
fn from(value: nvmlGpuInstanceInfo_t) -> Self
Converts to this type from the input type.
Source§impl Hash for GpuInstanceInfo
impl Hash for GpuInstanceInfo
Source§impl PartialEq for GpuInstanceInfo
impl PartialEq for GpuInstanceInfo
Source§fn eq(&self, other: &GpuInstanceInfo) -> bool
fn eq(&self, other: &GpuInstanceInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for GpuInstanceInfo
impl StructuralPartialEq for GpuInstanceInfo
Auto Trait Implementations§
impl Freeze for GpuInstanceInfo
impl RefUnwindSafe for GpuInstanceInfo
impl !Send for GpuInstanceInfo
impl !Sync for GpuInstanceInfo
impl Unpin for GpuInstanceInfo
impl UnsafeUnpin for GpuInstanceInfo
impl UnwindSafe for GpuInstanceInfo
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