Enum crosvm_direct::crosvm::cmdline::CrossPlatformCommands
source · [−]pub enum CrossPlatformCommands {
Show 19 variants
Balloon(BalloonCommand),
BalloonStats(BalloonStatsCommand),
Battery(BatteryCommand),
CreateComposite(CreateCompositeCommand),
CreateQcow2(CreateQcow2Command),
Device(DeviceCommand),
Disk(DiskCommand),
Gpu(GpuCommand),
MakeRT(MakeRTCommand),
Resume(ResumeCommand),
Run(RunCommand),
Stop(StopCommand),
Suspend(SuspendCommand),
Powerbtn(PowerbtnCommand),
Sleepbtn(SleepCommand),
Gpe(GpeCommand),
Usb(UsbCommand),
Version(VersionCommand),
Vfio(VfioCrosvmCommand),
}
Variants
Balloon(BalloonCommand)
BalloonStats(BalloonStatsCommand)
Battery(BatteryCommand)
CreateComposite(CreateCompositeCommand)
CreateQcow2(CreateQcow2Command)
Device(DeviceCommand)
Disk(DiskCommand)
Gpu(GpuCommand)
MakeRT(MakeRTCommand)
Resume(ResumeCommand)
Run(RunCommand)
Stop(StopCommand)
Suspend(SuspendCommand)
Powerbtn(PowerbtnCommand)
Sleepbtn(SleepCommand)
Gpe(GpeCommand)
Usb(UsbCommand)
Version(VersionCommand)
Vfio(VfioCrosvmCommand)
Trait Implementations
sourceimpl FromArgs for CrossPlatformCommands
impl FromArgs for CrossPlatformCommands
sourcefn from_args(command_name: &[&str], args: &[&str]) -> Result<Self, EarlyExit>
fn from_args(command_name: &[&str], args: &[&str]) -> Result<Self, EarlyExit>
Construct the type from an input set of arguments. Read more
sourcefn redact_arg_values(
command_name: &[&str],
args: &[&str]
) -> Result<Vec<String>, EarlyExit>
fn redact_arg_values(
command_name: &[&str],
args: &[&str]
) -> Result<Vec<String>, EarlyExit>
Get a String with just the argument names, e.g., options, flags, subcommands, etc, but without the values of the options and arguments. This can be useful as a means to capture anonymous usage statistics without revealing the content entered by the end user. Read more
sourceimpl SubCommands for CrossPlatformCommands
impl SubCommands for CrossPlatformCommands
sourceconst COMMANDS: &'static [&'static CommandInfo] = &[::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND]
const COMMANDS: &'static [&'static CommandInfo] = &[::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND,
::COMMAND]
Info for the commands.
fn dynamic_commands() -> &'static [&'static CommandInfo<'static>]
fn dynamic_commands() -> &'static [&'static CommandInfo<'static>]
Get a list of commands that are discovered at runtime.
Auto Trait Implementations
impl RefUnwindSafe for CrossPlatformCommands
impl Send for CrossPlatformCommands
impl Sync for CrossPlatformCommands
impl Unpin for CrossPlatformCommands
impl UnwindSafe for CrossPlatformCommands
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more