pub struct Boot { /* private fields */ }Expand description
Specify boot order drives as a string of drive letters. Valid drive
letters depend on the target architecture. The x86 PC uses: a, b
(floppy 1 and 2), c (first hard disk), d (first CD-ROM), n-p
(Etherboot from network adapter 1-4), hard disk boot is the default.
To apply a particular boot order only on the first startup, specify
it via once. Note that the order or once parameter
should not be used together with the bootindex property of
devices, since the firmware implementations normally do not support
both at the same time.
Interactive boot menus/prompts can be enabled via menu=on as far
as firmware/BIOS supports them. The default is non-interactive boot.
A splash picture could be passed to bios, enabling user to show it as logo, when option splash=sp_name is given and menu=on, If firmware/BIOS supports them. Currently Seabios for X86 system support it. limitation: The splash file could be a jpeg file or a BMP file in 24 BPP format(true color). The resolution should be supported by the SVGA mode, so the recommended is 320x240, 640x480, 800x640.
A timeout could be passed to bios, guest will pause for rb_timeout ms when boot failed, then reboot. If rb_timeout is ‘-1’, guest will not reboot, qemu passes ‘-1’ to bios by default. Currently Seabios for X86 system support it.
Do strict boot via strict=on as far as firmware/BIOS supports
it. This only effects when boot priority is changed by bootindex
options. The default is non-strict boot.
Implementations§
Trait Implementations§
Source§impl Arbitrary for Boot
impl Arbitrary for Boot
Source§type Parameters = (<Option<ShellString> as Arbitrary>::Parameters, <Option<ShellString> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<ShellString> as Arbitrary>::Parameters, <Option<usize> as Arbitrary>::Parameters, <Option<usize> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters)
type Parameters = (<Option<ShellString> as Arbitrary>::Parameters, <Option<ShellString> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<ShellString> as Arbitrary>::Parameters, <Option<usize> as Arbitrary>::Parameters, <Option<usize> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters)
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = Map<(<Option<ShellString> as Arbitrary>::Strategy, <Option<ShellString> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<ShellString> as Arbitrary>::Strategy, <Option<usize> as Arbitrary>::Strategy, <Option<usize> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy), fn((Option<ShellString>, Option<ShellString>, Option<OnOff>, Option<ShellString>, Option<usize>, Option<usize>, Option<OnOff>)) -> Boot>
type Strategy = Map<(<Option<ShellString> as Arbitrary>::Strategy, <Option<ShellString> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<ShellString> as Arbitrary>::Strategy, <Option<usize> as Arbitrary>::Strategy, <Option<usize> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy), fn((Option<ShellString>, Option<ShellString>, Option<OnOff>, Option<ShellString>, Option<usize>, Option<usize>, Option<OnOff>)) -> Boot>
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 Boot
impl Ord for Boot
Source§impl PartialOrd for Boot
impl PartialOrd for Boot
Source§impl ToCommand for Boot
impl ToCommand for Boot
fn has_args(&self) -> bool
Source§fn command(&self) -> String
fn command(&self) -> String
std::process::Command::new()Source§fn to_args(&self) -> Vec<String>
fn to_args(&self) -> Vec<String>
std::process::Command::args()Source§fn to_command(&self) -> Vec<String>
fn to_command(&self) -> Vec<String>
Source§fn to_single_command(&self) -> String
fn to_single_command(&self) -> String
StringSource§fn to_single_arg(&self) -> String
fn to_single_arg(&self) -> String
String