pub trait DiscoveryService {
fn discover_instances<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<ServiceInstance>, Box<dyn Error>>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
All discovery service provider must implement the trait. Note that, it’s based on async_trait