pub trait Handle {
// Required methods
fn run(&self) -> ContainerResult<()>;
fn wait(&self) -> ContainerResult<()>;
fn run_and_wait(&self) -> ContainerResult<()>;
fn stop(&self) -> ContainerResult<()>;
fn rm(&self) -> ContainerResult<()>;
fn log(&self) -> ContainerResult<Option<Log>>;
fn container(&self) -> &Container;
fn is_running(&self) -> ContainerResult<bool>;
fn exists(&self) -> ContainerResult<bool>;
}Expand description
A handle is a way to interact with a container.
When you create a container using a Client it will return one of these. The handle automatically stops and removes the container, when it goes out of scope.