pub fn new(cpu_id: u8, cpu_count: u8, ht_enabled: bool) -> Result<VmSpec, Error> {
        let cpu_vendor_id = get_vendor_id().map_err(Error::InternalError)?;

        Ok(VmSpec {
            cpu_vendor_id,
            cpu_id,
            cpu_count,
            ht_enabled,
            brand_string: BrandString::from_vendor_id(&cpu_vendor_id),
        })
    }
/// Creates a new instance of VmSpec with the specified parameters
/// The brand string is deduced from the vendor_id
Creates a new instance of VmSpec with the specified parameters
The brand string is deduced from the vendor_id
Creates a new instance of VmSpec with the specified parameters The brand string is deduced from the vendor_id
pub fn new(cpu_id: u8, cpu_count: u8, ht_enabled: bool) -> Result<VmSpec, Error> {
        let cpu_vendor_id = get_vendor_id().map_err(Error::InternalError)?;
        Ok(VmSpec {
            cpu_vendor_id,
            cpu_id,
            cpu_count,
            ht_enabled,
            brand_string: BrandString::from_vendor_id(&cpu_vendor_id),
        })
    }
pub fn new ( cpu_id : u8 , cpu_count : u8 , ht_enabled : bool ) -> Result < VmSpec , Error > { let cpu_vendor_id = get_vendor_id ( ) . map_err ( Error :: InternalError ) ? ; Ok ( VmSpec { cpu_vendor_id , cpu_id , cpu_count , ht_enabled , brand_string : BrandString :: from_vendor_id ( & cpu_vendor_id ) , } ) }
Creates a new instance of VmSpec with the specified parameters
The brand string is deduced from the vendor_id
Creates a new instance of VmSpec with the specified parameters The brand string is deduced from the vendor_id
cpu_id
u8
cpu_count
u8
ht_enabled
bool