Trait rust_cloud_discovery::DiscoveryService[][src]

pub trait DiscoveryService {
#[must_use]    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
; }

All discovery service provider must implement the trait. Note that, it’s based on async_trait

Required methods

#[must_use]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, 
[src]

Returns list of instances

Loading content...

Implementors

Loading content...