Enum emu_cli::command::CommandType
source · pub enum CommandType {
Show 17 variants
Create {
append: bool,
name: String,
size: usize,
},
Delete {
name: String,
disk: Option<String>,
},
Rename {
old: String,
new: String,
},
ListDisks {
name: String,
},
NC {
name: String,
port: u16,
},
SSH {
name: String,
args: Option<Vec<String>>,
},
Supervise {
cdrom: Option<PathBuf>,
name: String,
},
Unsupervise {
name: String,
},
Run {
headless: bool,
detach: bool,
cdrom: Option<PathBuf>,
extra_disk: Option<PathBuf>,
name: String,
},
Shutdown {
nowait: bool,
name: String,
},
QMP {
name: String,
command: String,
arguments: Option<String>,
},
List {
running: bool,
},
Supervised,
Clone {
from: String,
to: String,
},
Import {
format: String,
name: String,
from_file: PathBuf,
},
Config(ConfigSubcommand),
IsActive {
name: String,
},
}Variants§
Create
Fields
Create vm with a sized image
Delete
Delete existing vm
Rename
Rename VM to new name
ListDisks
List all disks a VM has available
NC
Open standard input to a port on the VM
SSH
Fields
Uses ssh_port configuration variable to SSH into the host
Supervise
Fields
Configure supervision of an already existing VM
Unsupervise
Remove supervision of an already existing vm
Run
Fields
Just run a pre-created VM; no systemd involved
Shutdown
Gracefully shutdown a pre-created VM
QMP
Fields
Issue QMP commands to the guest
List
Yield a list of VMs, one on each line
Supervised
Yield a list of supervised VMs, one on each line
Clone
Clone one VM to another
Import
Fields
Import a VM from a VM image file
Config(ConfigSubcommand)
Show and manipulate VM configuration
IsActive
Is this VM currently active?
Trait Implementations§
source§impl Clone for CommandType
impl Clone for CommandType
source§fn clone(&self) -> CommandType
fn clone(&self) -> CommandType
Returns a copy 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 CommandType
impl Debug for CommandType
source§impl FromArgMatches for CommandType
impl FromArgMatches for CommandType
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches to self.source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches to self.source§impl Subcommand for CommandType
impl Subcommand for CommandType
source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
source§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl RefUnwindSafe for CommandType
impl Send for CommandType
impl Sync for CommandType
impl Unpin for CommandType
impl UnwindSafe for CommandType
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