pub enum HealthTest {
Command(CommandLine),
Http {
port: u16,
path: String,
},
}Expand description
What a healthcheck tries.
Variants§
Command(CommandLine)
A command run inside the machine, healthy when it exits with 0.
Http
A page on the machine’s own port, healthy when it answers with a 2xx or 3xx status.
Trait Implementations§
Source§impl Clone for HealthTest
impl Clone for HealthTest
Source§impl Debug for HealthTest
impl Debug for HealthTest
impl Eq for HealthTest
Source§impl PartialEq for HealthTest
impl PartialEq for HealthTest
impl StructuralPartialEq for HealthTest
Auto Trait Implementations§
impl Freeze for HealthTest
impl RefUnwindSafe for HealthTest
impl Send for HealthTest
impl Sync for HealthTest
impl Unpin for HealthTest
impl UnsafeUnpin for HealthTest
impl UnwindSafe for HealthTest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.