pub struct Container { /* private fields */ }
Expand description
Handle to a container
Implementations§
Source§impl Container
impl Container
Sourcepub fn configure(image: impl Into<String>) -> Configurator
pub fn configure(image: impl Into<String>) -> Configurator
Call this function to configure a new container
Sourcepub fn wait(&self) -> Result<ExitStatus>
pub fn wait(&self) -> Result<ExitStatus>
Call this function to wait on the container
Sourcepub fn is_running(&self) -> Result<bool>
pub fn is_running(&self) -> Result<bool>
Check if running
Sourcepub fn take_stdin(&self) -> Result<ChildStdin>
pub fn take_stdin(&self) -> Result<ChildStdin>
Get stdin
Sourcepub fn take_stdout(&self) -> Result<ChildStdout>
pub fn take_stdout(&self) -> Result<ChildStdout>
Get stdout
Sourcepub fn take_stderr(&self) -> Result<ChildStderr>
pub fn take_stderr(&self) -> Result<ChildStderr>
Get stderr
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