pub trait AgentProbe: Send + Sync {
// Required method
fn probe<'life0, 'life1, 'async_trait>(
&'life0 self,
machine: &'life1 MachineConfig,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Hook for probing a per-machine yah-yubaba. Implemented in the CLI on top
of cloud-client so this crate can stay independent of reqwest /
transport concerns.
Required Methods§
Sourcefn probe<'life0, 'life1, 'async_trait>(
&'life0 self,
machine: &'life1 MachineConfig,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn probe<'life0, 'life1, 'async_trait>(
&'life0 self,
machine: &'life1 MachineConfig,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Ok(()) if the yubaba answered healthy. Err(reason) becomes the
AgentUnreachable.reason string in the report.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".