pub struct CommandHandler { /* private fields */ }Implementations§
Source§impl CommandHandler
impl CommandHandler
pub fn reset(&self, vm: &VM) -> Result<()>
pub fn restart(&self, vm: &VM) -> Result<()>
pub fn snapshot_save(&self, vm: &VM, snapshot: String) -> Result<()>
pub fn snapshot_load(&self, vm: &VM, snapshot: String) -> Result<()>
pub fn snapshot_delete(&self, vm: &VM, snapshot: String) -> Result<()>
pub fn save_state(&self, vm: &VM) -> Result<()>
pub fn load_state(&self, vm: &VM) -> Result<()>
pub fn clear_state(&self, vm: &VM) -> Result<()>
pub fn list(&self, running: bool) -> Result<()>
pub fn rename(&self, old: &VM, new: &VM) -> Result<()>
pub fn supervised(&self) -> Result<()>
pub async fn nc(&self, vm: &VM, port: u16) -> Result<()>
pub fn ssh(&self, vm: &VM, args: Option<Vec<String>>) -> Result<()>
pub fn create(&self, vm: &VM, size: usize, append: bool) -> Result<()>
pub fn list_disks(&self, vm: &VM) -> Result<()>
pub fn delete(&self, vm: &VM, disk: Option<String>) -> Result<()>
pub fn supervise(&self, vm: &VM) -> Result<()>
pub fn unsupervise(&self, vm: &VM) -> Result<()>
pub fn is_active(&self, vm: &VM) -> Result<()>
pub fn shutdown(&self, vm: &VM, nowait: bool) -> Result<()>
pub fn run(&self, vm: &VM, detach: bool) -> Result<()>
pub fn import(&self, vm: &VM, from_file: PathBuf, format: String) -> Result<()>
pub fn clone_vm(&self, from: &VM, to: &VM, config: bool) -> Result<()>
pub fn config_copy(&self, from: &VM, to: &VM) -> Result<()>
pub fn show_config(&self, vm: &VM) -> Result<()>
pub fn config_set(&self, vm: &VM, key: String, value: String) -> Result<()>
pub fn port_map(&self, vm: &VM, hostport: u16, guestport: u16) -> Result<()>
pub fn port_unmap(&self, vm: &VM, hostport: u16) -> Result<()>
pub fn qmp(&self, vm: &VM, command: &str, args: Option<&str>) -> Result<()>
Trait Implementations§
Source§impl Clone for CommandHandler
impl Clone for CommandHandler
Source§fn clone(&self) -> CommandHandler
fn clone(&self) -> CommandHandler
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandHandler
impl Debug for CommandHandler
Auto Trait Implementations§
impl Freeze for CommandHandler
impl !RefUnwindSafe for CommandHandler
impl !Send for CommandHandler
impl !Sync for CommandHandler
impl Unpin for CommandHandler
impl !UnwindSafe for CommandHandler
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