Enum testcontainers::core::CmdWaitFor
source · pub enum CmdWaitFor {
Nothing,
StdOutMessage {
message: String,
},
StdErrMessage {
message: String,
},
StdOutOrErrMessage {
message: String,
},
Duration {
length: Duration,
},
ExitCode {
code: i64,
},
}
Variants§
Nothing
An empty condition. Useful for default cases or fallbacks.
StdOutMessage
Wait for a message on the stdout stream of the command’s output.
StdErrMessage
Wait for a message on the stderr stream of the command’s output.
StdOutOrErrMessage
Wait for a message on the stdout or stderr stream of the command’s output.
Duration
Wait for a certain amount of time.
ExitCode
Wait for the command’s exit code to be equal to the provided one.
Implementations§
source§impl CmdWaitFor
impl CmdWaitFor
pub fn message_on_stdout<S: Into<String>>(message: S) -> Self
pub fn message_on_stderr<S: Into<String>>(message: S) -> Self
pub fn message_on_stdout_or_stderr<S: Into<String>>(message: S) -> Self
pub fn exit_code(code: i64) -> Self
pub fn seconds(length: u64) -> Self
pub fn millis(length: u64) -> Self
Trait Implementations§
source§impl Clone for CmdWaitFor
impl Clone for CmdWaitFor
source§fn clone(&self) -> CmdWaitFor
fn clone(&self) -> CmdWaitFor
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 CmdWaitFor
impl Debug for CmdWaitFor
source§impl From<WaitFor> for CmdWaitFor
impl From<WaitFor> for CmdWaitFor
source§impl PartialEq for CmdWaitFor
impl PartialEq for CmdWaitFor
source§fn eq(&self, other: &CmdWaitFor) -> bool
fn eq(&self, other: &CmdWaitFor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CmdWaitFor
impl StructuralPartialEq for CmdWaitFor
Auto Trait Implementations§
impl Freeze for CmdWaitFor
impl RefUnwindSafe for CmdWaitFor
impl Send for CmdWaitFor
impl Sync for CmdWaitFor
impl Unpin for CmdWaitFor
impl UnwindSafe for CmdWaitFor
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