Enum testcontainers::core::WaitFor
source · [−]pub enum WaitFor {
Nothing,
StdOutMessage {
message: String,
},
StdErrMessage {
message: String,
},
Duration {
length: Duration,
},
Healthcheck,
}
Expand description
Represents a condition that needs to be met before a container is considered ready.
Variants
Nothing
An empty condition. Useful for default cases or fallbacks.
StdOutMessage
Fields
message: String
Wait for a message on the stdout stream of the container’s logs.
StdErrMessage
Fields
message: String
Wait for a message on the stderr stream of the container’s logs.
Duration
Fields
length: Duration
Wait for a certain amount of time.
Healthcheck
Wait for the container’s status to become healthy
.
Implementations
Trait Implementations
impl StructuralPartialEq for WaitFor
Auto Trait Implementations
impl RefUnwindSafe for WaitFor
impl Send for WaitFor
impl Sync for WaitFor
impl Unpin for WaitFor
impl UnwindSafe for WaitFor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more