Struct X86

Source
pub struct X86 { /* private fields */ }
Expand description

x86/x86_64 configuration.

Implementations§

Source§

impl X86

Source

pub const fn new(io_base: u16, custom_exit_success: u32) -> Self

Create an instance.

Trait Implementations§

Source§

impl QEMUExit for X86

Source§

fn exit(&self, code: u32) -> !

Exit with specified return code. Read more
Source§

fn exit_success(&self) -> !

Exit QEMU using EXIT_SUCCESS, aka 0, if possible. Read more
Source§

fn exit_failure(&self) -> !

Exit QEMU using EXIT_FAILURE, aka 1.

Auto Trait Implementations§

§

impl Freeze for X86

§

impl RefUnwindSafe for X86

§

impl Send for X86

§

impl Sync for X86

§

impl Unpin for X86

§

impl UnwindSafe for X86

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> 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, 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.