pub struct SnapshotTakeCommand {
pub snapshot_path: PathBuf,
pub socket_path: String,
pub compress_memory: bool,
pub encrypt: bool,
}Expand description
Take a snapshot of the VM
Fields§
§snapshot_path: PathBufVM Image path
socket_path: StringVM Socket path
compress_memory: boolcompress the ram snapshot.
encrypt: boolwhether the snapshot should be encrypted
Trait Implementations§
Source§impl FromArgs for SnapshotTakeCommand
impl FromArgs for SnapshotTakeCommand
Source§fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
Construct the type from an input set of arguments. Read more
Source§fn redact_arg_values(
__cmd_name: &[&str],
__args: &[&str],
) -> Result<Vec<String>, EarlyExit>
fn redact_arg_values( __cmd_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
Auto Trait Implementations§
impl Freeze for SnapshotTakeCommand
impl RefUnwindSafe for SnapshotTakeCommand
impl Send for SnapshotTakeCommand
impl Sync for SnapshotTakeCommand
impl Unpin for SnapshotTakeCommand
impl UnwindSafe for SnapshotTakeCommand
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
§impl<T> SubCommands for Twhere
T: SubCommand,
impl<T> SubCommands for Twhere
T: SubCommand,
§fn dynamic_commands() -> &'static [&'static CommandInfo<'static>]
fn dynamic_commands() -> &'static [&'static CommandInfo<'static>]
Get a list of commands that are discovered at runtime.