CoreService

Trait CoreService 

Source
pub trait CoreService:
    Send
    + Sync
    + 'static {
    type SubscribeConnectionStateStream: Stream<Item = Result<ConnectionStateResponse, Status>> + Send + Sync + 'static;

    // Required methods
    fn subscribe_connection_state<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SubscribeConnectionStateRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeConnectionStateStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn list_running_plugins<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ListRunningPluginsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ListRunningPluginsResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with CoreServiceServer.

Required Associated Types§

Source

type SubscribeConnectionStateStream: Stream<Item = Result<ConnectionStateResponse, Status>> + Send + Sync + 'static

Server streaming response type for the SubscribeConnectionState method.

Required Methods§

Source

fn subscribe_connection_state<'life0, 'async_trait>( &'life0 self, request: Request<SubscribeConnectionStateRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeConnectionStateStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Subscribe to ‘connection state’ updates.

Source

fn list_running_plugins<'life0, 'async_trait>( &'life0 self, request: Request<ListRunningPluginsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ListRunningPluginsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get a list of currently running plugins.

Implementors§