Skip to main content

EngineProbe

Trait EngineProbe 

Source
pub trait EngineProbe:
    Send
    + Sync
    + 'static {
    // Required method
    fn probe(&self) -> ProbeFuture<'_>;
}
Expand description

Abstract engine reachability probe. The daemon calls EngineProbe::probe on a schedule + on-demand before a /status reply that would otherwise return stale data.

Manually boxed future (rather than async fn in trait) keeps the trait object-safe without pulling in async_trait just for one surface.

Required Methods§

Source

fn probe(&self) -> ProbeFuture<'_>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§