Trait ServiceRegistry

Source
pub trait ServiceRegistry: Send + Sync {
    // Required methods
    fn register<'life0, 'async_trait>(
        &'life0 self,
        service: ServiceInfo,
    ) -> Pin<Box<dyn Future<Output = Result<(), RevokeError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn deregister<'life0, 'async_trait>(
        &'life0 self,
        service_id: Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<(), RevokeError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn get_service<'life0, 'life1, 'async_trait>(
        &'life0 self,
        name: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<ServiceInfo>, RevokeError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
    fn update_health<'life0, 'async_trait>(
        &'life0 self,
        status: HealthStatus,
    ) -> Pin<Box<dyn Future<Output = Result<(), RevokeError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
}

Required Methods§

Source

fn register<'life0, 'async_trait>( &'life0 self, service: ServiceInfo, ) -> Pin<Box<dyn Future<Output = Result<(), RevokeError>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Source

fn deregister<'life0, 'async_trait>( &'life0 self, service_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<(), RevokeError>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Source

fn get_service<'life0, 'life1, 'async_trait>( &'life0 self, name: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Vec<ServiceInfo>, RevokeError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Source

fn update_health<'life0, 'async_trait>( &'life0 self, status: HealthStatus, ) -> Pin<Box<dyn Future<Output = Result<(), RevokeError>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Implementors§