pub struct Container { /* private fields */ }
Implementations§
Source§impl Container
impl Container
pub fn new() -> Result<Self>
pub fn binary_path(&self, src_bin: &PathBuf) -> Result<PathBuf>
pub fn copy_binary(&self, src_bin: &PathBuf) -> Result<PathBuf>
pub fn kill(&self) -> Result<()>
pub fn exec(&self, cmd: Vec<&str>) -> Result<Output>
pub fn exec_as(&self, user: &str, cmd: Vec<&str>) -> Result<Output>
pub fn exec_w_pass<'a>( &self, user: &'a str, pass: &'a str, cmd: Vec<&'a str>, ) -> Result<Output>
pub fn cp(&self, from: &str, to: &str) -> Result<Output>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Container
impl RefUnwindSafe for Container
impl Send for Container
impl Sync for Container
impl Unpin for Container
impl UnwindSafe for Container
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