Struct dockertest::waitfor::ExitedWait
source · pub struct ExitedWait {
pub check_interval: u64,
pub max_checks: u64,
}
Expand description
The ExitedWait WaitFor
implementation for containers.
This variant will wait until the docker daemon reports that the container has exited.
Fields§
§check_interval: u64
How many seconds shall there be between each check for running state.
max_checks: u64
The number of checks to perform before erroring out.
Trait Implementations§
source§impl Clone for ExitedWait
impl Clone for ExitedWait
source§fn clone(&self) -> ExitedWait
fn clone(&self) -> ExitedWait
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 moresource§impl Debug for ExitedWait
impl Debug for ExitedWait
source§impl WaitFor for ExitedWait
impl WaitFor for ExitedWait
source§fn wait_for_ready<'life0, 'async_trait>(
&'life0 self,
container: PendingContainer,
) -> Pin<Box<dyn Future<Output = Result<OperationalContainer, DockerTestError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn wait_for_ready<'life0, 'async_trait>(
&'life0 self,
container: PendingContainer,
) -> Pin<Box<dyn Future<Output = Result<OperationalContainer, DockerTestError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Method implementation should return a future that resolves once the condition
described by the implementing structure is fulfilled. Once this successfully resolves,
the container is marked as ready.
source§fn expected_state(&self) -> ContainerState
fn expected_state(&self) -> ContainerState
What state the container is expected to be in after completing the
wait_for_ready
method,
defaulting to the ContainerState::Running
state.
NOTE: This is only relevant for the container state api on ‘OperationalContainer’ (start, stop,
kill) as we deny certain operations based on the assumed container state.Auto Trait Implementations§
impl Freeze for ExitedWait
impl RefUnwindSafe for ExitedWait
impl Send for ExitedWait
impl Sync for ExitedWait
impl Unpin for ExitedWait
impl UnwindSafe for ExitedWait
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
)