pub trait QEMUExit {
// Required methods
fn exit(&self, code: u32) -> !;
fn exit_success(&self) -> !;
fn exit_failure(&self) -> !;
}
Expand description
Generic interface for exiting QEMU.
Required Methods§
Sourcefn exit(&self, code: u32) -> !
fn exit(&self, code: u32) -> !
Exit with specified return code.
Note: For X86
, code is binary-OR’ed with 0x1
inside QEMU.
Sourcefn exit_success(&self) -> !
fn exit_success(&self) -> !
Exit QEMU using EXIT_SUCCESS
, aka 0
, if possible.
Note: Not possible for X86
.
Sourcefn exit_failure(&self) -> !
fn exit_failure(&self) -> !
Exit QEMU using EXIT_FAILURE
, aka 1
.