Enum rustainers::WaitStrategy
source · #[non_exhaustive]pub enum WaitStrategy {
HealthCheck,
CustomHealthCheck(HealthCheck),
State(ContainerStatus),
}Expand description
Wait strategies
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
HealthCheck
With the image health check
CustomHealthCheck(HealthCheck)
With custom health check
State(ContainerStatus)
Wait for the container state
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 moresource§impl Debug for WaitStrategy
impl Debug for WaitStrategy
source§impl Default for WaitStrategy
impl Default for WaitStrategy
source§fn default() -> WaitStrategy
fn default() -> WaitStrategy
Returns the “default value” for a type. Read more
source§impl From<ContainerStatus> for WaitStrategy
impl From<ContainerStatus> for WaitStrategy
source§fn from(value: ContainerStatus) -> Self
fn from(value: ContainerStatus) -> Self
Converts to this type from the input type.
source§impl From<HealthCheck> for WaitStrategy
impl From<HealthCheck> for WaitStrategy
source§fn from(value: HealthCheck) -> Self
fn from(value: HealthCheck) -> Self
Converts to this type from the input type.
source§impl PartialEq for WaitStrategy
impl PartialEq for WaitStrategy
source§fn eq(&self, other: &WaitStrategy) -> bool
fn eq(&self, other: &WaitStrategy) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for WaitStrategy
impl StructuralEq for WaitStrategy
impl StructuralPartialEq for WaitStrategy
Auto 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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.