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 OperationalContainer
pub fn handle<'a>(&'a self, handle: &'a str) -> &'a OperationalContainer
Retrieve the OperationalContainer
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 Freeze for DockerOperations
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)