pub struct Hardware {
pub model: Option<String>,
pub cpu: Option<String>,
pub arch: String,
pub os: String,
pub cores_logical: u32,
pub cores_performance: Option<u32>,
pub cores_efficiency: Option<u32>,
pub ram: u64,
pub unified_memory: bool,
pub fanless: Option<bool>,
pub has_battery: bool,
pub gpus: Vec<GpuInfo>,
}Fields§
§model: Option<String>§cpu: Option<String>§arch: String§os: String§cores_logical: u32§cores_performance: Option<u32>§cores_efficiency: Option<u32>§ram: u64§unified_memory: bool§fanless: Option<bool>§has_battery: bool§gpus: Vec<GpuInfo>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Hardware
impl<'de> Deserialize<'de> for Hardware
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 StructuralPartialEq for Hardware
Auto Trait Implementations§
impl Forget for Hardware
impl Freeze for Hardware
impl Move for Hardware
impl RefUnwindSafe for Hardware
impl Send for Hardwarewhere
RawVecInner: Send,
impl Sync for Hardwarewhere
RawVecInner: Sync,
impl Unpin for Hardware
impl UnsafeUnpin for Hardwarewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<GpuInfo>: UnsafeUnpin,
impl UnwindSafe for Hardwarewhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more