#[repr(u32)]pub enum HostVgpuMode {
NonSriov = 0,
Sriov = 1,
}Variants§
Trait Implementations§
Source§impl Clone for HostVgpuMode
impl Clone for HostVgpuMode
Source§fn clone(&self) -> HostVgpuMode
fn clone(&self) -> HostVgpuMode
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 HostVgpuMode
impl Debug for HostVgpuMode
Source§impl From<HostVgpuMode> for nvmlHostVgpuMode_t
impl From<HostVgpuMode> for nvmlHostVgpuMode_t
Source§fn from(value: HostVgpuMode) -> Self
fn from(value: HostVgpuMode) -> Self
Converts to this type from the input type.
Source§impl From<HostVgpuMode> for u32
impl From<HostVgpuMode> for u32
Source§fn from(enum_value: HostVgpuMode) -> Self
fn from(enum_value: HostVgpuMode) -> Self
Converts to this type from the input type.
Source§impl From<nvmlHostVgpuMode_enum> for HostVgpuMode
impl From<nvmlHostVgpuMode_enum> for HostVgpuMode
Source§fn from(value: nvmlHostVgpuMode_t) -> Self
fn from(value: nvmlHostVgpuMode_t) -> Self
Converts to this type from the input type.
Source§impl Hash for HostVgpuMode
impl Hash for HostVgpuMode
Source§impl PartialEq for HostVgpuMode
impl PartialEq for HostVgpuMode
Source§fn eq(&self, other: &HostVgpuMode) -> bool
fn eq(&self, other: &HostVgpuMode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<u32> for HostVgpuMode
impl TryFrom<u32> for HostVgpuMode
Source§type Error = TryFromPrimitiveError<HostVgpuMode>
type Error = TryFromPrimitiveError<HostVgpuMode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for HostVgpuMode
impl TryFromPrimitive for HostVgpuMode
const NAME: &'static str = "HostVgpuMode"
type Primitive = u32
type Error = TryFromPrimitiveError<HostVgpuMode>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for HostVgpuMode
impl Eq for HostVgpuMode
impl StructuralPartialEq for HostVgpuMode
Auto Trait Implementations§
impl Freeze for HostVgpuMode
impl RefUnwindSafe for HostVgpuMode
impl Send for HostVgpuMode
impl Sync for HostVgpuMode
impl Unpin for HostVgpuMode
impl UnsafeUnpin for HostVgpuMode
impl UnwindSafe for HostVgpuMode
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