Struct liboci_cli::Checkpoint
source · 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: PathBufPath 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: boolLeave the process running after checkpointing
tcp_established: boolAllow open tcp connections
ext_unix_sk: boolAllow external unix sockets
shell_job: boolAllow shell jobs
lazy_pages: boolUse 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: boolAllow file locks
pre_dump: boolDo a pre-dump
manage_cgroups_mode: Option<String>Cgroups mode
empty_ns: boolCheckpoint a namespace, but don’t save its properties
auto_dedup: boolEnable auto-deduplication
container_id: StringTrait 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§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)
Update from iterator, exit on error.
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