pub struct CriuRuntime { /* private fields */ }Expand description
CRIU runtime for checkpoint/restore
Follows the same pattern as GVisorRuntime: find binary, validate, invoke via Command.
Implementations§
Source§impl CriuRuntime
impl CriuRuntime
Sourcepub fn checkpoint(
&mut self,
state: &ContainerState,
output_dir: &Path,
leave_running: bool,
) -> Result<()>
pub fn checkpoint( &mut self, state: &ContainerState, output_dir: &Path, leave_running: bool, ) -> Result<()>
Checkpoint a running container
State transitions: None -> Dumping -> Dumped (or Dumping -> None on failure)
Auto Trait Implementations§
impl Freeze for CriuRuntime
impl RefUnwindSafe for CriuRuntime
impl Send for CriuRuntime
impl Sync for CriuRuntime
impl Unpin for CriuRuntime
impl UnsafeUnpin for CriuRuntime
impl UnwindSafe for CriuRuntime
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