pub enum Probe {
Http {
url: Url,
expect: HttpExpect,
request: HttpRequest,
},
Tcp {
host: Host,
port: u16,
expect: TcpExpect,
exchange: TcpExchange,
},
Exec {
command: String,
expect: Option<String>,
},
Script {
path: String,
},
Playbook {
path: String,
},
}Expand description
One resolved probe.
Variants§
Http
An HTTP request to a URL.
Fields
§
expect: HttpExpectThe answer that passes.
§
request: HttpRequestA method, headers, a body, text to find: empty for a plain GET.
Tcp
A TCP connection to a host’s port.
Fields
§
exchange: TcpExchangeA line to write and text to read back: empty for a bare connection.
Exec
A command inside the position’s machine.
Fields
Script
A script in the project, run with sh from the position.
Playbook
An Ansible playbook in the project, run from the controller.
Trait Implementations§
impl Eq for Probe
impl StructuralPartialEq for Probe
Auto Trait Implementations§
impl Freeze for Probe
impl RefUnwindSafe for Probe
impl Send for Probe
impl Sync for Probe
impl Unpin for Probe
impl UnsafeUnpin for Probe
impl UnwindSafe for Probe
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.