pub struct Checkpoint {Show 16 fields
pub image_path: PathBuf,
pub work_path: Option<PathBuf>,
pub parent_path: Option<PathBuf>,
pub leave_running: bool,
pub tcp_established: bool,
pub ext_unix_sk: bool,
pub shell_job: bool,
pub lazy_pages: bool,
pub status_fd: Option<u32>,
pub page_server: Option<String>,
pub file_locks: bool,
pub pre_dump: bool,
pub manage_cgroups_mode: Option<String>,
pub empty_ns: bool,
pub auto_dedup: bool,
pub container_id: String,
}
Expand description
Checkpoint a running container Reference: https://github.com/opencontainers/runc/blob/main/man/runc-checkpoint.8.md
Fields§
§image_path: PathBuf
Path for saving criu image files
work_path: Option<PathBuf>
Path for saving work files and logs
parent_path: Option<PathBuf>
Path for previous criu image file in pre-dump
leave_running: bool
Leave the process running after checkpointing
tcp_established: bool
Allow open tcp connections
ext_unix_sk: bool
Allow external unix sockets
shell_job: bool
Allow shell jobs
lazy_pages: bool
Use lazy migration mechanism
status_fd: Option<u32>
Pass a file descriptor fd to criu
page_server: Option<String>
Start a page server at the given URL
file_locks: bool
Allow file locks
pre_dump: bool
Do a pre-dump
manage_cgroups_mode: Option<String>
Cgroups mode
empty_ns: bool
Checkpoint a namespace, but don’t save its properties
auto_dedup: bool
Enable auto-deduplication
container_id: String
Trait Implementations§
Source§impl Args for Checkpoint
impl Args for Checkpoint
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command
so it can instantiate self
via
FromArgMatches::update_from_arg_matches_mut
Read moreSource§impl CommandFactory for Checkpoint
impl CommandFactory for Checkpoint
Source§impl Debug for Checkpoint
impl Debug for Checkpoint
Source§impl FromArgMatches for Checkpoint
impl FromArgMatches for Checkpoint
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Source§impl Parser for Checkpoint
impl Parser for Checkpoint
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for Checkpoint
impl RefUnwindSafe for Checkpoint
impl Send for Checkpoint
impl Sync for Checkpoint
impl Unpin for Checkpoint
impl UnwindSafe for Checkpoint
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