pub struct LsCpu {
pub sockets: u32,
pub cores_per_socket: u32,
pub threads_per_core: u32,
pub model: String,
}Fields§
§sockets: u32§cores_per_socket: u32§threads_per_core: u32§model: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for LsCpu
impl<'de> Deserialize<'de> for LsCpu
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
Auto Trait Implementations§
impl Freeze for LsCpu
impl RefUnwindSafe for LsCpu
impl Send for LsCpu
impl Sync for LsCpu
impl Unpin for LsCpu
impl UnsafeUnpin for LsCpu
impl UnwindSafe for LsCpu
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