pub struct ComputeInstance(/* private fields */);Implementations§
Source§impl ComputeInstance
impl ComputeInstance
pub const unsafe fn from_raw(handle: nvmlComputeInstance_t) -> Self
pub const fn as_raw(&self) -> nvmlComputeInstance_t
pub const fn is_null(&self) -> bool
Sourcepub fn info(&self) -> Result<ComputeInstanceInfo>
pub fn info(&self) -> Result<ComputeInstanceInfo>
Returns compute instance information.
For Ampere or newer fully supported devices. Supported on Linux only.
§Errors
Returns an error if the handle or output arguments are rejected by NVML, if the current process does not have permission to query the instance, or if NVML has not been initialized.
pub fn parent_device(&self) -> Result<Device>
pub fn parent_gpu_instance(&self) -> Result<GpuInstance>
pub fn id(&self) -> Result<u32>
pub fn profile_id(&self) -> Result<u32>
pub fn placement(&self) -> Result<ComputeInstancePlacement>
Trait Implementations§
Source§impl Clone for ComputeInstance
impl Clone for ComputeInstance
Source§fn clone(&self) -> ComputeInstance
fn clone(&self) -> ComputeInstance
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 ComputeInstance
impl Debug for ComputeInstance
Source§impl Hash for ComputeInstance
impl Hash for ComputeInstance
Source§impl PartialEq for ComputeInstance
impl PartialEq for ComputeInstance
Source§fn eq(&self, other: &ComputeInstance) -> bool
fn eq(&self, other: &ComputeInstance) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ComputeInstance
impl StructuralPartialEq for ComputeInstance
Auto Trait Implementations§
impl Freeze for ComputeInstance
impl RefUnwindSafe for ComputeInstance
impl !Send for ComputeInstance
impl !Sync for ComputeInstance
impl Unpin for ComputeInstance
impl UnsafeUnpin for ComputeInstance
impl UnwindSafe for ComputeInstance
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