#[repr(i32)]pub enum HardwareType {
Show 14 variants
Motherboard,
SuperIO,
Cpu,
Memory,
GpuNvidia,
GpuAmd,
GpuIntel,
Storage,
Network,
Cooler,
EmbeddedController,
Psu,
Battery,
Unknown(i32),
}Expand description
Types of hardware
Variants§
Motherboard
SuperIO
Cpu
Memory
GpuNvidia
GpuAmd
GpuIntel
Storage
Network
Cooler
EmbeddedController
Psu
Battery
Unknown(i32)
Trait Implementations§
Source§impl Clone for HardwareType
impl Clone for HardwareType
Source§fn clone(&self) -> HardwareType
fn clone(&self) -> HardwareType
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 moreimpl Copy for HardwareType
Source§impl Debug for HardwareType
impl Debug for HardwareType
Source§impl<'de> Deserialize<'de> for HardwareType
impl<'de> Deserialize<'de> for HardwareType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HardwareType
Source§impl From<HardwareType> for i32
impl From<HardwareType> for i32
Source§fn from(enum_value: HardwareType) -> Self
fn from(enum_value: HardwareType) -> Self
Converts to this type from the input type.
Source§impl From<i32> for HardwareType
impl From<i32> for HardwareType
Source§impl FromPrimitive for HardwareType
impl FromPrimitive for HardwareType
Source§impl Ord for HardwareType
impl Ord for HardwareType
Source§fn cmp(&self, other: &HardwareType) -> Ordering
fn cmp(&self, other: &HardwareType) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for HardwareType
impl PartialEq for HardwareType
Source§fn eq(&self, other: &HardwareType) -> bool
fn eq(&self, other: &HardwareType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for HardwareType
impl PartialOrd for HardwareType
Source§impl Serialize for HardwareType
impl Serialize for HardwareType
impl StructuralPartialEq for HardwareType
Auto Trait Implementations§
impl Freeze for HardwareType
impl RefUnwindSafe for HardwareType
impl Send for HardwareType
impl Sync for HardwareType
impl Unpin for HardwareType
impl UnsafeUnpin for HardwareType
impl UnwindSafe for HardwareType
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