Enum contain_rs::WaitStrategy
source · pub enum WaitStrategy {
LogMessage {
pattern: Regex,
},
HealthCheck,
WaitTime {
duration: Duration,
},
}
Expand description
A wait strategy can be used to wait for a cotnainer to be ready.
Variants§
LogMessage
Waits for a log message to appear.
HealthCheck
Waits for the container to be healty.
WaitTime
Wait for some amount of time.
Trait Implementations§
source§impl Clone for WaitStrategy
impl Clone for WaitStrategy
source§fn clone(&self) -> WaitStrategy
fn clone(&self) -> WaitStrategy
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 moreAuto Trait Implementations§
impl RefUnwindSafe for WaitStrategy
impl Send for WaitStrategy
impl Sync for WaitStrategy
impl Unpin for WaitStrategy
impl UnwindSafe for WaitStrategy
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