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
Wait for a message on the stdout stream of the container’s logs.
StdErrMessage
Wait for a message on the stderr stream of the container’s logs.
Duration
Wait for a certain amount of time.
Healthcheck
Wait for the container’s status to become healthy
.
Implementations§
Trait Implementations§
source§impl From<WaitFor> for CmdWaitFor
impl From<WaitFor> for CmdWaitFor
source§impl PartialEq for WaitFor
impl PartialEq for WaitFor
impl Eq for WaitFor
impl StructuralPartialEq for WaitFor
Auto Trait Implementations§
impl Freeze for WaitFor
impl RefUnwindSafe for WaitFor
impl Send for WaitFor
impl Sync for WaitFor
impl Unpin for WaitFor
impl UnwindSafe for WaitFor
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