Skip to main content

QemuInstanceBase

Struct QemuInstanceBase 

Source
pub struct QemuInstanceBase<Machine, Cpu> {
Show 108 fields pub qemu_binary: PathBuf, pub machine: Option<Machine>, pub cpu: Option<Cpu>, pub accel: Option<Accel>, pub smp: Option<SMP>, pub numa: Option<Vec<NUMA>>, pub add_fd: Option<AddFd>, pub set: Option<Vec<Set>>, pub global: Option<Vec<Global>>, pub boot: Option<Boot>, pub m: Option<Memory>, pub mem_path: Option<PathBuf>, pub mem_prealloc: Option<bool>, pub k: Option<String>, pub audio: Option<Audio>, pub audiodev: Option<AudioDev>, pub device: Option<Vec<Device>>, pub name: Option<Name>, pub uuid: Option<TypedUuid<QUuid>>, pub fda: Option<PathBuf>, pub fdb: Option<PathBuf>, pub hda: Option<PathBuf>, pub hdb: Option<PathBuf>, pub hdc: Option<PathBuf>, pub hdd: Option<PathBuf>, pub cdrom: Option<PathBuf>, pub blockdev: Option<Vec<BlockDev>>, pub drive: Option<Vec<Drive>>, pub mdtblock: Option<PathBuf>, pub sd: Option<PathBuf>, pub snapshot: Option<bool>, pub fsdev: Option<FsDev>, pub virtfs: Option<Virtfs>, pub iscsi: Option<Iscsi>, pub usb: Option<bool>, pub usbdevice: Option<USBDevice>, pub display: Option<QemuDisplay>, pub nographic: Option<bool>, pub spice: Option<Spice>, pub vga: Option<VGA>, pub full_screen: Option<bool>, pub g: Option<G>, pub vnc: Option<VNC>, pub win2k_hack: Option<bool>, pub no_fd_bootchk: Option<bool>, pub acpitable: Option<AcpiTable>, pub smbios: Option<Vec<Smbios>>, pub netdev: Option<Vec<NetDev>>, pub chardev: Option<Vec<CharDev>>, pub tpmdev: Option<TpmDev>, pub bios: Option<PathBuf>, pub pflash: Option<PathBuf>, pub kernel: Option<PathBuf>, pub shim: Option<PathBuf>, pub append: Option<ShellString>, pub initrd: Option<PathBuf>, pub dtb: Option<PathBuf>, pub compact: Option<Compact>, pub fw_cfg: Option<FwCfg>, pub serial: Option<SpecialDevice>, pub parallel: Option<Vec<SpecialDevice>>, pub monitor: Option<SpecialDevice>, pub qmp: Option<SpecialDevice>, pub qmp_pretty: Option<SpecialDevice>, pub mon: Option<Vec<Mon>>, pub debugcon: Option<CharDev>, pub pidfile: Option<PathBuf>, pub preconfig: Option<bool>, pub big_s: Option<bool>, pub overcommit: Option<Overcommit>, pub gdb: Option<SpecialDevice>, pub s: Option<bool>, pub d: Option<Vec<String>>, pub big_d: Option<PathBuf>, pub dfilter: Option<Vec<String>>, pub seed: Option<usize>, pub big_l: Option<PathBuf>, pub enable_kvm: Option<bool>, pub xen_id: Option<String>, pub xen_attach: Option<bool>, pub xen_domid_restrict: Option<bool>, pub no_reboot: Option<bool>, pub no_shutdown: Option<bool>, pub action: Option<Action>, pub loadvm: Option<String>, pub daemonize: Option<bool>, pub option_rom: Option<PathBuf>, pub rtc: Option<Rtc>, pub icount: Option<Icount>, pub watchdog_action: Option<WatchdogAction>, pub echr: Option<String>, pub incoming: Option<Vec<Incoming>>, pub only_migratable: Option<bool>, pub nodefaults: Option<bool>, pub sandbox: Option<Sandbox>, pub readconfig: Option<PathBuf>, pub no_user_config: Option<bool>, pub trace: Option<Trace>, pub plugin: Option<Plugin>, pub run_with: Option<RunWith>, pub runas: Option<String>, pub chroot: Option<PathBuf>, pub msg: Option<Msg>, pub dump_vmstate: Option<PathBuf>, pub enable_sync_profile: Option<bool>, pub perfmap: Option<PathBuf>, pub jitdump: Option<PathBuf>, pub object: Option<Vec<Object>>,
}

Fields§

§qemu_binary: PathBuf§machine: Option<Machine>§cpu: Option<Cpu>§accel: Option<Accel>§smp: Option<SMP>§numa: Option<Vec<NUMA>>§add_fd: Option<AddFd>§set: Option<Vec<Set>>§global: Option<Vec<Global>>§boot: Option<Boot>§m: Option<Memory>§mem_path: Option<PathBuf>§mem_prealloc: Option<bool>§k: Option<String>§audio: Option<Audio>§audiodev: Option<AudioDev>§device: Option<Vec<Device>>§name: Option<Name>§uuid: Option<TypedUuid<QUuid>>§fda: Option<PathBuf>§fdb: Option<PathBuf>§hda: Option<PathBuf>§hdb: Option<PathBuf>§hdc: Option<PathBuf>§hdd: Option<PathBuf>§cdrom: Option<PathBuf>§blockdev: Option<Vec<BlockDev>>§drive: Option<Vec<Drive>>§mdtblock: Option<PathBuf>§sd: Option<PathBuf>§snapshot: Option<bool>§fsdev: Option<FsDev>§virtfs: Option<Virtfs>§iscsi: Option<Iscsi>§usb: Option<bool>§usbdevice: Option<USBDevice>§display: Option<QemuDisplay>§nographic: Option<bool>§spice: Option<Spice>§vga: Option<VGA>§full_screen: Option<bool>§g: Option<G>§vnc: Option<VNC>§win2k_hack: Option<bool>§no_fd_bootchk: Option<bool>§acpitable: Option<AcpiTable>§smbios: Option<Vec<Smbios>>§netdev: Option<Vec<NetDev>>§chardev: Option<Vec<CharDev>>§tpmdev: Option<TpmDev>§bios: Option<PathBuf>§pflash: Option<PathBuf>§kernel: Option<PathBuf>§shim: Option<PathBuf>§append: Option<ShellString>§initrd: Option<PathBuf>§dtb: Option<PathBuf>§compact: Option<Compact>§fw_cfg: Option<FwCfg>§serial: Option<SpecialDevice>§parallel: Option<Vec<SpecialDevice>>§monitor: Option<SpecialDevice>§qmp: Option<SpecialDevice>§qmp_pretty: Option<SpecialDevice>§mon: Option<Vec<Mon>>§debugcon: Option<CharDev>§pidfile: Option<PathBuf>§preconfig: Option<bool>§big_s: Option<bool>§overcommit: Option<Overcommit>§gdb: Option<SpecialDevice>§s: Option<bool>§d: Option<Vec<String>>§big_d: Option<PathBuf>§dfilter: Option<Vec<String>>§seed: Option<usize>§big_l: Option<PathBuf>§enable_kvm: Option<bool>§xen_id: Option<String>§xen_attach: Option<bool>§xen_domid_restrict: Option<bool>§no_reboot: Option<bool>§no_shutdown: Option<bool>§action: Option<Action>§loadvm: Option<String>§daemonize: Option<bool>§option_rom: Option<PathBuf>§rtc: Option<Rtc>§icount: Option<Icount>§watchdog_action: Option<WatchdogAction>§echr: Option<String>§incoming: Option<Vec<Incoming>>§only_migratable: Option<bool>§nodefaults: Option<bool>§sandbox: Option<Sandbox>§readconfig: Option<PathBuf>§no_user_config: Option<bool>§trace: Option<Trace>§plugin: Option<Plugin>§run_with: Option<RunWith>§runas: Option<String>§chroot: Option<PathBuf>§msg: Option<Msg>§dump_vmstate: Option<PathBuf>§enable_sync_profile: Option<bool>§perfmap: Option<PathBuf>§jitdump: Option<PathBuf>§object: Option<Vec<Object>>

Implementations§

Source§

impl<Machine, Cpu> QemuInstanceBase<Machine, Cpu>

Source

pub fn builder() -> QemuInstanceBaseBuilder<Machine, Cpu>

Create an instance of QemuInstanceBase using the builder syntax

Trait Implementations§

Source§

impl<Machine: Arbitrary, Cpu: Arbitrary> Arbitrary for QemuInstanceBase<Machine, Cpu>

Source§

type Parameters = (<PathBuf as Arbitrary>::Parameters, <Option<Machine> as Arbitrary>::Parameters, <Option<Cpu> as Arbitrary>::Parameters, <Option<Accel> as Arbitrary>::Parameters, <Option<SMP> as Arbitrary>::Parameters, <Option<Vec<NUMA>> as Arbitrary>::Parameters, <Option<AddFd> as Arbitrary>::Parameters, <Option<Vec<Set>> as Arbitrary>::Parameters, <Option<Vec<Global>> as Arbitrary>::Parameters, (<Option<Boot> as Arbitrary>::Parameters, <Option<Memory> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <Option<bool> as Arbitrary>::Parameters, <Option<String> as Arbitrary>::Parameters, <Option<Audio> as Arbitrary>::Parameters, <Option<AudioDev> as Arbitrary>::Parameters, <Option<Vec<Device>> as Arbitrary>::Parameters, <Option<Name> as Arbitrary>::Parameters, (<Option<TypedUuid<QUuid>> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <Option<Vec<BlockDev>> as Arbitrary>::Parameters, (<Option<Vec<Drive>> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <Option<bool> as Arbitrary>::Parameters, <Option<FsDev> as Arbitrary>::Parameters, <Option<Virtfs> as Arbitrary>::Parameters, <Option<Iscsi> as Arbitrary>::Parameters, <Option<bool> as Arbitrary>::Parameters, <Option<USBDevice> as Arbitrary>::Parameters, (<Option<QemuDisplay> as Arbitrary>::Parameters, <Option<bool> as Arbitrary>::Parameters, <Option<Spice> as Arbitrary>::Parameters, <Option<VGA> as Arbitrary>::Parameters, <Option<bool> as Arbitrary>::Parameters, <Option<G> as Arbitrary>::Parameters, <Option<VNC> as Arbitrary>::Parameters, <Option<bool> as Arbitrary>::Parameters, <Option<bool> as Arbitrary>::Parameters, (<Option<AcpiTable> as Arbitrary>::Parameters, <Option<Vec<Smbios>> as Arbitrary>::Parameters, <Option<Vec<NetDev>> as Arbitrary>::Parameters, <Option<Vec<CharDev>> as Arbitrary>::Parameters, <Option<TpmDev> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, (<Option<ShellString> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <Option<Compact> as Arbitrary>::Parameters, <Option<FwCfg> as Arbitrary>::Parameters, <Option<SpecialDevice> as Arbitrary>::Parameters, <Option<Vec<SpecialDevice>> as Arbitrary>::Parameters, <Option<SpecialDevice> as Arbitrary>::Parameters, <Option<SpecialDevice> as Arbitrary>::Parameters, (<Option<SpecialDevice> as Arbitrary>::Parameters, <Option<Vec<Mon>> as Arbitrary>::Parameters, <Option<CharDev> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <Option<bool> as Arbitrary>::Parameters, <Option<bool> as Arbitrary>::Parameters, <Option<Overcommit> as Arbitrary>::Parameters, <Option<SpecialDevice> as Arbitrary>::Parameters, <Option<bool> as Arbitrary>::Parameters, (<Option<Vec<String>> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <Option<Vec<String>> as Arbitrary>::Parameters, <Option<usize> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <Option<bool> as Arbitrary>::Parameters, <Option<String> as Arbitrary>::Parameters, <Option<bool> as Arbitrary>::Parameters, <Option<bool> as Arbitrary>::Parameters, (<Option<bool> as Arbitrary>::Parameters, <Option<bool> as Arbitrary>::Parameters, <Option<Action> as Arbitrary>::Parameters, <Option<String> as Arbitrary>::Parameters, <Option<bool> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <Option<Rtc> as Arbitrary>::Parameters, <Option<Icount> as Arbitrary>::Parameters, <Option<WatchdogAction> as Arbitrary>::Parameters, (<Option<String> as Arbitrary>::Parameters, <Option<Vec<Incoming>> as Arbitrary>::Parameters, <Option<bool> as Arbitrary>::Parameters, <Option<bool> as Arbitrary>::Parameters, <Option<Sandbox> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <Option<bool> as Arbitrary>::Parameters, <Option<Trace> as Arbitrary>::Parameters, <Option<Plugin> as Arbitrary>::Parameters, (<Option<RunWith> as Arbitrary>::Parameters, <Option<String> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <Option<Msg> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <Option<bool> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <Option<Vec<Object>> 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<(<PathBuf as Arbitrary>::Strategy, <Option<Machine> as Arbitrary>::Strategy, <Option<Cpu> as Arbitrary>::Strategy, <Option<Accel> as Arbitrary>::Strategy, <Option<SMP> as Arbitrary>::Strategy, <Option<Vec<NUMA>> as Arbitrary>::Strategy, <Option<AddFd> as Arbitrary>::Strategy, <Option<Vec<Set>> as Arbitrary>::Strategy, <Option<Vec<Global>> as Arbitrary>::Strategy, (<Option<Boot> as Arbitrary>::Strategy, <Option<Memory> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, <Option<bool> as Arbitrary>::Strategy, <Option<String> as Arbitrary>::Strategy, <Option<Audio> as Arbitrary>::Strategy, <Option<AudioDev> as Arbitrary>::Strategy, <Option<Vec<Device>> as Arbitrary>::Strategy, <Option<Name> as Arbitrary>::Strategy, (<Option<TypedUuid<QUuid>> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, <Option<Vec<BlockDev>> as Arbitrary>::Strategy, (<Option<Vec<Drive>> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, <Option<bool> as Arbitrary>::Strategy, <Option<FsDev> as Arbitrary>::Strategy, <Option<Virtfs> as Arbitrary>::Strategy, <Option<Iscsi> as Arbitrary>::Strategy, <Option<bool> as Arbitrary>::Strategy, <Option<USBDevice> as Arbitrary>::Strategy, (<Option<QemuDisplay> as Arbitrary>::Strategy, <Option<bool> as Arbitrary>::Strategy, <Option<Spice> as Arbitrary>::Strategy, <Option<VGA> as Arbitrary>::Strategy, <Option<bool> as Arbitrary>::Strategy, <Option<G> as Arbitrary>::Strategy, <Option<VNC> as Arbitrary>::Strategy, <Option<bool> as Arbitrary>::Strategy, <Option<bool> as Arbitrary>::Strategy, (<Option<AcpiTable> as Arbitrary>::Strategy, <Option<Vec<Smbios>> as Arbitrary>::Strategy, <Option<Vec<NetDev>> as Arbitrary>::Strategy, <Option<Vec<CharDev>> as Arbitrary>::Strategy, <Option<TpmDev> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, (<Option<ShellString> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, <Option<Compact> as Arbitrary>::Strategy, <Option<FwCfg> as Arbitrary>::Strategy, <Option<SpecialDevice> as Arbitrary>::Strategy, <Option<Vec<SpecialDevice>> as Arbitrary>::Strategy, <Option<SpecialDevice> as Arbitrary>::Strategy, <Option<SpecialDevice> as Arbitrary>::Strategy, (<Option<SpecialDevice> as Arbitrary>::Strategy, <Option<Vec<Mon>> as Arbitrary>::Strategy, <Option<CharDev> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, <Option<bool> as Arbitrary>::Strategy, <Option<bool> as Arbitrary>::Strategy, <Option<Overcommit> as Arbitrary>::Strategy, <Option<SpecialDevice> as Arbitrary>::Strategy, <Option<bool> as Arbitrary>::Strategy, (<Option<Vec<String>> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, <Option<Vec<String>> as Arbitrary>::Strategy, <Option<usize> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, <Option<bool> as Arbitrary>::Strategy, <Option<String> as Arbitrary>::Strategy, <Option<bool> as Arbitrary>::Strategy, <Option<bool> as Arbitrary>::Strategy, (<Option<bool> as Arbitrary>::Strategy, <Option<bool> as Arbitrary>::Strategy, <Option<Action> as Arbitrary>::Strategy, <Option<String> as Arbitrary>::Strategy, <Option<bool> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, <Option<Rtc> as Arbitrary>::Strategy, <Option<Icount> as Arbitrary>::Strategy, <Option<WatchdogAction> as Arbitrary>::Strategy, (<Option<String> as Arbitrary>::Strategy, <Option<Vec<Incoming>> as Arbitrary>::Strategy, <Option<bool> as Arbitrary>::Strategy, <Option<bool> as Arbitrary>::Strategy, <Option<Sandbox> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, <Option<bool> as Arbitrary>::Strategy, <Option<Trace> as Arbitrary>::Strategy, <Option<Plugin> as Arbitrary>::Strategy, (<Option<RunWith> as Arbitrary>::Strategy, <Option<String> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, <Option<Msg> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, <Option<bool> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, <Option<Vec<Object>> as Arbitrary>::Strategy)))))))))))), fn((PathBuf, Option<Machine>, Option<Cpu>, Option<Accel>, Option<SMP>, Option<Vec<NUMA>>, Option<AddFd>, Option<Vec<Set>>, Option<Vec<Global>>, (Option<Boot>, Option<Memory>, Option<PathBuf>, Option<bool>, Option<String>, Option<Audio>, Option<AudioDev>, Option<Vec<Device>>, Option<Name>, (Option<TypedUuid<QUuid>>, Option<PathBuf>, Option<PathBuf>, Option<PathBuf>, Option<PathBuf>, Option<PathBuf>, Option<PathBuf>, Option<PathBuf>, Option<Vec<BlockDev>>, (Option<Vec<Drive>>, Option<PathBuf>, Option<PathBuf>, Option<bool>, Option<FsDev>, Option<Virtfs>, Option<Iscsi>, Option<bool>, Option<USBDevice>, (Option<QemuDisplay>, Option<bool>, Option<Spice>, Option<VGA>, Option<bool>, Option<G>, Option<VNC>, Option<bool>, Option<bool>, (Option<AcpiTable>, Option<Vec<Smbios>>, Option<Vec<NetDev>>, Option<Vec<CharDev>>, Option<TpmDev>, Option<PathBuf>, Option<PathBuf>, Option<PathBuf>, Option<PathBuf>, (Option<ShellString>, Option<PathBuf>, Option<PathBuf>, Option<Compact>, Option<FwCfg>, Option<SpecialDevice>, Option<Vec<SpecialDevice>>, Option<SpecialDevice>, Option<SpecialDevice>, (Option<SpecialDevice>, Option<Vec<Mon>>, Option<CharDev>, Option<PathBuf>, Option<bool>, Option<bool>, Option<Overcommit>, Option<SpecialDevice>, Option<bool>, (Option<Vec<String>>, Option<PathBuf>, Option<Vec<String>>, Option<usize>, Option<PathBuf>, Option<bool>, Option<String>, Option<bool>, Option<bool>, (Option<bool>, Option<bool>, Option<Action>, Option<String>, Option<bool>, Option<PathBuf>, Option<Rtc>, Option<Icount>, Option<WatchdogAction>, (Option<String>, Option<Vec<Incoming>>, Option<bool>, Option<bool>, Option<Sandbox>, Option<PathBuf>, Option<bool>, Option<Trace>, Option<Plugin>, (Option<RunWith>, Option<String>, Option<PathBuf>, Option<Msg>, Option<PathBuf>, Option<bool>, Option<PathBuf>, Option<PathBuf>, Option<Vec<Object>>))))))))))))) -> QemuInstanceBase<Machine, Cpu>>

The type of Strategy used to generate values of type Self.
Source§

fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy

Generates a Strategy for producing arbitrary values of type the implementing type (Self). The strategy is passed the arguments given in args. Read more
Source§

fn arbitrary() -> Self::Strategy

Generates a Strategy for producing arbitrary values of type the implementing type (Self). Read more
Source§

impl<Machine: Clone, Cpu: Clone> Clone for QemuInstanceBase<Machine, Cpu>

Source§

fn clone(&self) -> QemuInstanceBase<Machine, Cpu>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<Machine: Debug, Cpu: Debug> Debug for QemuInstanceBase<Machine, Cpu>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<Machine: Hash, Cpu: Hash> Hash for QemuInstanceBase<Machine, Cpu>

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<Machine: Ord, Cpu: Ord> Ord for QemuInstanceBase<Machine, Cpu>

Source§

fn cmp(&self, other: &QemuInstanceBase<Machine, Cpu>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl<Machine: PartialEq, Cpu: PartialEq> PartialEq for QemuInstanceBase<Machine, Cpu>

Source§

fn eq(&self, other: &QemuInstanceBase<Machine, Cpu>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<Machine: PartialOrd, Cpu: PartialOrd> PartialOrd for QemuInstanceBase<Machine, Cpu>

Source§

fn partial_cmp( &self, other: &QemuInstanceBase<Machine, Cpu>, ) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<Machine: ToCommand, Cpu: ToCommand> ToCommand for QemuInstanceBase<Machine, Cpu>
where QemuInstanceBase<Machine, Cpu>: FromStr,

Source§

fn command(&self) -> String

Convert to a type suitable to pass to std::process::Command::new()
Source§

fn to_args(&self) -> Vec<String>

Convert to a type suitable to pass to std::process::Command::args()
Source§

fn has_args(&self) -> bool

Source§

fn to_command(&self) -> Vec<String>

Construct the full command in keep in pieces
Source§

fn to_single_command(&self) -> String

Construct the full command as a single String
Source§

fn to_single_arg(&self) -> String

Construct only the args as a single String
Source§

impl<Machine: Eq, Cpu: Eq> Eq for QemuInstanceBase<Machine, Cpu>

Source§

impl<Machine, Cpu> StructuralPartialEq for QemuInstanceBase<Machine, Cpu>

Auto Trait Implementations§

§

impl<Machine, Cpu> Freeze for QemuInstanceBase<Machine, Cpu>
where Machine: Freeze, Cpu: Freeze,

§

impl<Machine, Cpu> RefUnwindSafe for QemuInstanceBase<Machine, Cpu>
where Machine: RefUnwindSafe, Cpu: RefUnwindSafe,

§

impl<Machine, Cpu> Send for QemuInstanceBase<Machine, Cpu>
where Machine: Send, Cpu: Send,

§

impl<Machine, Cpu> Sync for QemuInstanceBase<Machine, Cpu>
where Machine: Sync, Cpu: Sync,

§

impl<Machine, Cpu> Unpin for QemuInstanceBase<Machine, Cpu>
where Machine: Unpin, Cpu: Unpin,

§

impl<Machine, Cpu> UnsafeUnpin for QemuInstanceBase<Machine, Cpu>
where Machine: UnsafeUnpin, Cpu: UnsafeUnpin,

§

impl<Machine, Cpu> UnwindSafe for QemuInstanceBase<Machine, Cpu>
where Machine: UnwindSafe, Cpu: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V