Struct dockertest::DockerOperations
source · pub struct DockerOperations { /* private fields */ }
Expand description
The test body parameter provided in the DockerTest::run argument closure.
This object allows one to interact with the containers within the test environment.
Implementations§
source§impl DockerOperations
impl DockerOperations
sourcepub fn handle<'a>(&'a self, handle: &'a str) -> &'a RunningContainer
pub fn handle<'a>(&'a self, handle: &'a str) -> &'a RunningContainer
Retrieve the RunningContainer
identified by this handle.
A container is identified within dockertest by its assigned or derived handler.
If no explictly set through set_handle
, the value will be equal to the
repository name used when creating the container.
Panics
This function panics if the requested handle does not exist, or there are conflicting containers with the same repository name is present without custom configured container names.
Trait Implementations§
source§impl Clone for DockerOperations
impl Clone for DockerOperations
source§fn clone(&self) -> DockerOperations
fn clone(&self) -> DockerOperations
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for DockerOperations
impl Send for DockerOperations
impl Sync for DockerOperations
impl Unpin for DockerOperations
impl !UnwindSafe for DockerOperations
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