pub trait Discovery: 'static {
// Required method
fn instances(
&self,
) -> impl Future<Output = Result<Vec<impl Instance>, Box<dyn Error + Send + Sync>>> + Send;
// Provided method
fn backends(
&self,
) -> impl Future<Output = Result<Vec<BackendHost>, Box<dyn Error + Send + Sync>>> + Send { ... }
}Required Methods§
fn instances( &self, ) -> impl Future<Output = Result<Vec<impl Instance>, Box<dyn Error + Send + Sync>>> + Send
Provided Methods§
fn backends( &self, ) -> impl Future<Output = Result<Vec<BackendHost>, Box<dyn Error + Send + Sync>>> + Send
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.