pub struct Runc { /* private fields */ }
Implementations§
Source§impl Runc
impl Runc
Sourcepub fn create<P>(
&self,
id: &str,
bundle: P,
opts: Option<&CreateOpts>,
) -> Result<Response>
pub fn create<P>( &self, id: &str, bundle: P, opts: Option<&CreateOpts>, ) -> Result<Response>
Create a new container
Sourcepub fn exec(
&self,
id: &str,
spec: &Process,
opts: Option<&ExecOpts>,
) -> Result<()>
pub fn exec( &self, id: &str, spec: &Process, opts: Option<&ExecOpts>, ) -> Result<()>
Execute an additional process inside the container
Sourcepub fn kill(&self, id: &str, sig: u32, opts: Option<&KillOpts>) -> Result<()>
pub fn kill(&self, id: &str, sig: u32, opts: Option<&KillOpts>) -> Result<()>
Send the specified signal to processes inside the container
Sourcepub fn list(&self) -> Result<Vec<Container>>
pub fn list(&self) -> Result<Vec<Container>>
List all containers associated with this runc instance
pub fn checkpoint(&self) -> Result<()>
pub fn restore(&self) -> Result<()>
Sourcepub fn ps(&self, id: &str) -> Result<Vec<usize>>
pub fn ps(&self, id: &str) -> Result<Vec<usize>>
List all the processes inside the container, returning their pids
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Runc
impl !RefUnwindSafe for Runc
impl Send for Runc
impl Sync for Runc
impl Unpin for Runc
impl !UnwindSafe for Runc
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