pub struct VmSpec { /* private fields */ }Expand description
Structure containing the specifications of the VM
Implementations
sourceimpl VmSpec
impl VmSpec
sourcepub fn new(
cpu_id: u8,
cpu_count: u8,
threads_per_core: u8,
cores_per_die: u8,
dies_per_socket: u8,
vpmu_feature: VpmuFeatureLevel
) -> Result<VmSpec, Error>
pub fn new(
cpu_id: u8,
cpu_count: u8,
threads_per_core: u8,
cores_per_die: u8,
dies_per_socket: u8,
vpmu_feature: VpmuFeatureLevel
) -> Result<VmSpec, Error>
Creates a new instance of VmSpec with the specified parameters The brand string is deduced from the vendor_id
sourcepub fn cpu_vendor_id(&self) -> &[u8; 12]
pub fn cpu_vendor_id(&self) -> &[u8; 12]
Returns an immutable reference to cpu_vendor_id
Auto Trait Implementations
impl RefUnwindSafe for VmSpec
impl Send for VmSpec
impl Sync for VmSpec
impl Unpin for VmSpec
impl UnwindSafe for VmSpec
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more