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