Struct docker_test::Container
source · [−]pub struct Container { /* private fields */ }Implementations
sourceimpl Container
impl Container
pub fn new(src_bin: PathBuf) -> Result<Self>
pub fn src_str(&self) -> &str
pub fn dest_str(&self) -> &str
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 RefUnwindSafe for Container
impl Send for Container
impl Sync for Container
impl Unpin for Container
impl UnwindSafe for Container
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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