pub struct CpuX86 { /* private fields */ }Expand description
An x86 -cpu argument.
QEMU accepts a CPU model followed by comma-separated feature modifiers such
as migratable=yes, vmx, or -svm.
Implementations§
Source§impl CpuX86
impl CpuX86
Sourcepub fn builder() -> CpuX86Builder
pub fn builder() -> CpuX86Builder
Create an instance of CpuX86 using the builder syntax
Source§impl CpuX86
impl CpuX86
Sourcepub fn new(cpu_type: CpuTypeX86_64) -> Self
pub fn new(cpu_type: CpuTypeX86_64) -> Self
Creates a CPU argument for the given x86_64 CPU model.
Sourcepub fn migratable(&mut self, state: YesNo) -> &mut Self
pub fn migratable(&mut self, state: YesNo) -> &mut Self
Sets the migratable= CPU property.
Trait Implementations§
Source§impl Arbitrary for CpuX86
impl Arbitrary for CpuX86
Source§type Parameters = (<CpuTypeX86_64 as Arbitrary>::Parameters, <Option<YesNo> as Arbitrary>::Parameters, <Option<BTreeMap<CPUFlag, OnOff>> as Arbitrary>::Parameters)
type Parameters = (<CpuTypeX86_64 as Arbitrary>::Parameters, <Option<YesNo> as Arbitrary>::Parameters, <Option<BTreeMap<CPUFlag, OnOff>> as Arbitrary>::Parameters)
The type of parameters that
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = Map<(<CpuTypeX86_64 as Arbitrary>::Strategy, <Option<YesNo> as Arbitrary>::Strategy, <Option<BTreeMap<CPUFlag, OnOff>> as Arbitrary>::Strategy), fn((CpuTypeX86_64, Option<YesNo>, Option<BTreeMap<CPUFlag, OnOff>>)) -> CpuX86>
type Strategy = Map<(<CpuTypeX86_64 as Arbitrary>::Strategy, <Option<YesNo> as Arbitrary>::Strategy, <Option<BTreeMap<CPUFlag, OnOff>> as Arbitrary>::Strategy), fn((CpuTypeX86_64, Option<YesNo>, Option<BTreeMap<CPUFlag, OnOff>>)) -> CpuX86>
The type of
Strategy used to generate values of type Self.Source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
Source§impl Ord for CpuX86
impl Ord for CpuX86
Source§impl PartialOrd for CpuX86
impl PartialOrd for CpuX86
Source§impl ToCommand for CpuX86
impl ToCommand for CpuX86
Source§fn command(&self) -> String
fn command(&self) -> String
Convert to a type suitable to pass to
std::process::Command::new()Source§fn to_args(&self) -> Vec<String>
fn to_args(&self) -> Vec<String>
Convert to a type suitable to pass to
std::process::Command::args()fn has_args(&self) -> bool
Source§fn to_command(&self) -> Vec<String>
fn to_command(&self) -> Vec<String>
Construct the full command in keep in pieces
Source§fn to_single_command(&self) -> String
fn to_single_command(&self) -> String
Construct the full command as a single
StringSource§fn to_single_arg(&self) -> String
fn to_single_arg(&self) -> String
Construct only the args as a single
Stringimpl Eq for CpuX86
impl StructuralPartialEq for CpuX86
Auto Trait Implementations§
impl Freeze for CpuX86
impl RefUnwindSafe for CpuX86
impl Send for CpuX86
impl Sync for CpuX86
impl Unpin for CpuX86
impl UnsafeUnpin for CpuX86
impl UnwindSafe for CpuX86
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