/// Send the specified signal to all processes inside the container.
Send the specified signal to all processes inside the container.
Send the specified signal to all processes inside the container .
pub async fn kill(&self, id: &str, sig: i32, opts: Option<&KillArgs>) -> Result<()> {
        let mut args = vec![String::from("kill")];
        Self::append_opts(&mut args, opts.map(|opts| opts as &dyn Args))?;
        args.push(String::from(id));
        args.push(format!("{}", sig));
        self.exec(&args).await.map(|_| ())
    }
pub async fn kill ( & self , id : & str , sig : i32 , opts : Option < & KillArgs > ) -> Result < ( ) > { let mut args = vec ! [ String from ( " " ) ] ; Self :: append_opts ( & mut args , opts . map ( | opts | opts as & dyn Args ) ) ? ; args . push ( String :: from ( id ) ) ; args . push ( format ! ( " " sig ) ) ; self . exec ( & args ) . await . map ( | _ | ( ) ) }
Send the specified signal to all processes inside the container.
Send the specified signal to all processes inside the container .
&self
id
&str
sig
i32
opts
Option<&KillArgs>