pub struct Client(_);Implementations
sourceimpl Client
impl Client
sourcepub fn from_config(config: Config) -> Result<Self, Error>
pub fn from_config(config: Config) -> Result<Self, Error>
Create a new runc client from the supplied configuration
pub fn command(&self, args: &[String]) -> Result<Command, Error>
pub fn checkpoint(&self) -> Result<(), Error>
sourcepub fn create<P>(
&self,
id: &str,
bundle: P,
opts: Option<&CreateOpts>
) -> Result<Response, Error> where
P: AsRef<Path>,
pub fn create<P>(
&self,
id: &str,
bundle: P,
opts: Option<&CreateOpts>
) -> Result<Response, Error> where
P: AsRef<Path>,
Create a new container
sourcepub fn delete(&self, id: &str, opts: Option<&DeleteOpts>) -> Result<(), Error>
pub fn delete(&self, id: &str, opts: Option<&DeleteOpts>) -> Result<(), Error>
Delete a container
sourcepub fn exec(
&self,
id: &str,
spec: &Process,
opts: Option<&ExecOpts>
) -> Result<(), Error>
pub fn exec(
&self,
id: &str,
spec: &Process,
opts: Option<&ExecOpts>
) -> Result<(), Error>
Execute an additional process inside the container
sourcepub fn kill(
&self,
id: &str,
sig: u32,
opts: Option<&KillOpts>
) -> Result<(), Error>
pub fn kill(
&self,
id: &str,
sig: u32,
opts: Option<&KillOpts>
) -> Result<(), Error>
Send the specified signal to processes inside the container
sourcepub fn list(&self) -> Result<Vec<Container>, Error>
pub fn list(&self) -> Result<Vec<Container>, Error>
List all containers associated with this runc instance
pub fn restore(&self) -> Result<(), Error>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub 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