Struct dockertest::waitfor::RunningWait
source · pub struct RunningWait {
pub check_interval: u64,
pub max_checks: u64,
}
Expand description
The RunningWait WaitFor
implementation for containers.
This variant will wait until the docker daemon reports the container as running.
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 RunningWait
impl Clone for RunningWait
source§fn clone(&self) -> RunningWait
fn clone(&self) -> RunningWait
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 RunningWait
impl Debug for RunningWait
source§impl WaitFor for RunningWait
impl WaitFor for RunningWait
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 RunningWait
impl RefUnwindSafe for RunningWait
impl Send for RunningWait
impl Sync for RunningWait
impl Unpin for RunningWait
impl UnwindSafe for RunningWait
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
)