pub struct Machine { /* private fields */ }Implementations§
Source§impl Machine
impl Machine
pub fn new(config: MachineConfig) -> Self
pub fn config(&self) -> &MachineConfig
pub fn status(&self) -> MachineStatus
pub fn config_mut(&mut self) -> &mut MachineConfig
pub fn set_ram_bytes(&mut self, bytes: u64)
pub fn set_vga_memory_bytes(&mut self, bytes: u64)
pub fn set_command_line(&mut self, command_line: impl Into<String>)
pub fn attach_backend(&mut self, backend: impl ExecutionBackend + 'static)
pub fn set_bios(&mut self, image: Image) -> Result<()>
pub fn set_vga_bios(&mut self, image: Image) -> Result<()>
pub fn set_disk(&mut self, image: Image) -> Result<()>
pub fn set_cdrom(&mut self, image: Image) -> Result<()>
pub fn set_bootloader(&mut self, bootloader: Bootloader)
pub fn load_bootloader(&mut self, source: Resource) -> Result<()>
pub fn load_image(&mut self, kind: ImageKind, source: Resource) -> Result<()>
pub fn set_saved_state(&mut self, state: SavedState)
pub fn load_saved_state(&mut self, source: Resource) -> Result<()>
pub fn bios(&self) -> Option<&Image>
pub fn vga_bios(&self) -> Option<&Image>
pub fn disk(&self) -> Option<&Image>
pub fn cdrom(&self) -> Option<&Image>
pub fn bootloader(&self) -> Option<&Bootloader>
pub fn saved_state(&self) -> Option<&SavedState>
pub fn prepare(&mut self) -> Result<()>
pub fn run(&mut self, options: RunOptions) -> Result<RunReport>
pub fn vga_framebuffer_rgb(&self) -> Option<(u32, u32, Vec<u8>)>
pub fn inject_text(&mut self, text: &str) -> Result<usize>
pub fn stop(&mut self)
Auto Trait Implementations§
impl !RefUnwindSafe for Machine
impl !Sync for Machine
impl !UnwindSafe for Machine
impl Freeze for Machine
impl Send for Machine
impl Unpin for Machine
impl UnsafeUnpin for Machine
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