Struct dockertest::waitfor::NoWait
source · pub struct NoWait {}
Expand description
The NoWait WaitFor
implementation for containers.
This variant does not wait for anything, resolves immediately.
Trait Implementations§
source§impl WaitFor for NoWait
impl WaitFor for NoWait
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 NoWait
impl RefUnwindSafe for NoWait
impl Send for NoWait
impl Sync for NoWait
impl Unpin for NoWait
impl UnwindSafe for NoWait
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
)