pub struct Runc { /* private fields */ }
Implementations
sourceimpl Runc
impl Runc
sourcepub fn create<P>(
&self,
id: &str,
bundle: P,
opts: Option<&CreateOpts>
) -> Result<Response> where
P: AsRef<Path>,
pub fn create<P>(
&self,
id: &str,
bundle: P,
opts: Option<&CreateOpts>
) -> Result<Response> where
P: AsRef<Path>,
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 !RefUnwindSafe for Runc
impl Send for Runc
impl Sync for Runc
impl Unpin for Runc
impl !UnwindSafe for Runc
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more