Skip to main content

Probe

Trait Probe 

Source
pub trait Probe: Send + Sync {
    // Required method
    fn execute(
        &self,
        def: &ProbeDefinition,
    ) -> impl Future<Output = Result<ResponseSurface, Error>> + Send;
}
Expand description

Executes a single HTTP interaction and returns the full response surface.

One call to execute produces one ResponseSurface. The scheduler drives the Analyzer::evaluate loop in parlov-analysis and pairs results into a ProbeSet.

Implementations must be Send + Sync so they can be shared across async tasks.

Required Methods§

Source

fn execute( &self, def: &ProbeDefinition, ) -> impl Future<Output = Result<ResponseSurface, Error>> + Send

Execute one HTTP interaction described by def and return the full response surface.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§