Enum nvml_wrapper::enum_wrappers::device::DetachGpuState
source · pub enum DetachGpuState {
Keep,
Remove,
}
Expand description
Options to pass to crate::Device::remove()
.
Variants§
Implementations§
source§impl DetachGpuState
impl DetachGpuState
sourcepub fn as_c(&self) -> nvmlDetachGpuState_enum
pub fn as_c(&self) -> nvmlDetachGpuState_enum
Returns the C enum variant equivalent for the given Rust enum variant
Trait Implementations§
source§impl Clone for DetachGpuState
impl Clone for DetachGpuState
source§fn clone(&self) -> DetachGpuState
fn clone(&self) -> DetachGpuState
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 DetachGpuState
impl Debug for DetachGpuState
source§impl Hash for DetachGpuState
impl Hash for DetachGpuState
source§impl PartialEq for DetachGpuState
impl PartialEq for DetachGpuState
source§fn eq(&self, other: &DetachGpuState) -> bool
fn eq(&self, other: &DetachGpuState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u32> for DetachGpuState
impl TryFrom<u32> for DetachGpuState
impl Eq for DetachGpuState
impl StructuralPartialEq for DetachGpuState
Auto Trait Implementations§
impl RefUnwindSafe for DetachGpuState
impl Send for DetachGpuState
impl Sync for DetachGpuState
impl Unpin for DetachGpuState
impl UnwindSafe for DetachGpuState
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