Trait mav_sdk::grpc::core::CoreService [−][src]
pub trait CoreService: Send + Sync + 'static {
type SubscribeConnectionStateStream: Stream<Item = Result<ConnectionStateResponse, Status>> + Send + Sync + 'static;
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
'life0: 'async_trait,
Self: '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
'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
Generated trait containing gRPC methods that should be implemented for use with CoreServiceServer.
Associated Types
type SubscribeConnectionStateStream: Stream<Item = Result<ConnectionStateResponse, Status>> + Send + Sync + 'static
type SubscribeConnectionStateStream: Stream<Item = Result<ConnectionStateResponse, Status>> + Send + Sync + 'static
Server streaming response type for the SubscribeConnectionState method.
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
'life0: 'async_trait,
Self: 'async_trait,
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
'life0: 'async_trait,
Self: 'async_trait,
Subscribe to ‘connection state’ updates.
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
'life0: 'async_trait,
Self: '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
'life0: 'async_trait,
Self: 'async_trait,
Get a list of currently running plugins.