pub struct Accel { /* private fields */ }Expand description
This is used to enable an accelerator. Depending on the target architecture, kvm, xen, hvf, nvmm, whpx or tcg can be available. By default, tcg is used. If there is more than one accelerator specified, the next one is used if the previous one fails to initialize.
Implementations§
Trait Implementations§
Source§impl Arbitrary for Accel
impl Arbitrary for Accel
Source§type Parameters = (<AccelType as Arbitrary>::Parameters, <Option<OnOffDefaultOff> as Arbitrary>::Parameters, <Option<OnOffSplit> as Arbitrary>::Parameters, <Option<usize> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<usize> as Arbitrary>::Parameters, <Option<usize> as Arbitrary>::Parameters, <Option<usize> as Arbitrary>::Parameters, (<Option<NotifyVMExit> as Arbitrary>::Parameters, <Option<TCGThreadType> as Arbitrary>::Parameters, <Option<ShellPath> as Arbitrary>::Parameters, <Option<OnOffAuto> as Arbitrary>::Parameters))
type Parameters = (<AccelType as Arbitrary>::Parameters, <Option<OnOffDefaultOff> as Arbitrary>::Parameters, <Option<OnOffSplit> as Arbitrary>::Parameters, <Option<usize> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<usize> as Arbitrary>::Parameters, <Option<usize> as Arbitrary>::Parameters, <Option<usize> as Arbitrary>::Parameters, (<Option<NotifyVMExit> as Arbitrary>::Parameters, <Option<TCGThreadType> as Arbitrary>::Parameters, <Option<ShellPath> as Arbitrary>::Parameters, <Option<OnOffAuto> 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<(<AccelType as Arbitrary>::Strategy, <Option<OnOffDefaultOff> as Arbitrary>::Strategy, <Option<OnOffSplit> as Arbitrary>::Strategy, <Option<usize> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<usize> as Arbitrary>::Strategy, <Option<usize> as Arbitrary>::Strategy, <Option<usize> as Arbitrary>::Strategy, (<Option<NotifyVMExit> as Arbitrary>::Strategy, <Option<TCGThreadType> as Arbitrary>::Strategy, <Option<ShellPath> as Arbitrary>::Strategy, <Option<OnOffAuto> as Arbitrary>::Strategy)), fn((AccelType, Option<OnOffDefaultOff>, Option<OnOffSplit>, Option<usize>, Option<OnOff>, Option<OnOff>, Option<usize>, Option<usize>, Option<usize>, (Option<NotifyVMExit>, Option<TCGThreadType>, Option<ShellPath>, Option<OnOffAuto>))) -> Accel>
type Strategy = Map<(<AccelType as Arbitrary>::Strategy, <Option<OnOffDefaultOff> as Arbitrary>::Strategy, <Option<OnOffSplit> as Arbitrary>::Strategy, <Option<usize> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<usize> as Arbitrary>::Strategy, <Option<usize> as Arbitrary>::Strategy, <Option<usize> as Arbitrary>::Strategy, (<Option<NotifyVMExit> as Arbitrary>::Strategy, <Option<TCGThreadType> as Arbitrary>::Strategy, <Option<ShellPath> as Arbitrary>::Strategy, <Option<OnOffAuto> as Arbitrary>::Strategy)), fn((AccelType, Option<OnOffDefaultOff>, Option<OnOffSplit>, Option<usize>, Option<OnOff>, Option<OnOff>, Option<usize>, Option<usize>, Option<usize>, (Option<NotifyVMExit>, Option<TCGThreadType>, Option<ShellPath>, Option<OnOffAuto>))) -> Accel>
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 Accel
impl Ord for Accel
Source§impl PartialOrd for Accel
impl PartialOrd for Accel
Source§impl ToCommand for Accel
impl ToCommand for Accel
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 Accel
impl StructuralPartialEq for Accel
Auto Trait Implementations§
impl Freeze for Accel
impl RefUnwindSafe for Accel
impl Send for Accel
impl Sync for Accel
impl Unpin for Accel
impl UnsafeUnpin for Accel
impl UnwindSafe for Accel
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