pub trait DriverProxyInterface: Send + Sync {
type HealthCheckResponseFut: Future<Output = Result<DriverHealthCheckResult, Error>> + Send;
// Required methods
fn stop(&self) -> Result<(), Error>;
fn health_check(
&self,
request: HealthCheckRequest,
) -> Self::HealthCheckResponseFut;
}Required Associated Types§
type HealthCheckResponseFut: Future<Output = Result<DriverHealthCheckResult, Error>> + Send
Required Methods§
fn stop(&self) -> Result<(), Error>
fn health_check( &self, request: HealthCheckRequest, ) -> Self::HealthCheckResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".