Trait gaia_stub::broker::broker_server::Broker

source ·
pub trait Broker:
    Send
    + Sync
    + 'static {
    type OpenTelemetryStreamStream: Stream<Item = Result<TelemetryStreamResponse, Status>> + Send + 'static;
    type OpenCommandStreamStream: Stream<Item = Result<CommandStreamResponse, Status>> + Send + 'static;

    // Required methods
    fn post_command<'life0, 'async_trait>(
        &'life0 self,
        request: Request<PostCommandRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<PostCommandResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn open_telemetry_stream<'life0, 'async_trait>(
        &'life0 self,
        request: Request<TelemetryStreamRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::OpenTelemetryStreamStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_last_received_telemetry<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetLastReceivedTelemetryRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetLastReceivedTelemetryResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn open_command_stream<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Streaming<CommandStreamRequest>>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::OpenCommandStreamStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn post_telemetry<'life0, 'async_trait>(
        &'life0 self,
        request: Request<PostTelemetryRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<PostTelemetryResponse>, 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 BrokerServer.

Required Associated Types§

source

type OpenTelemetryStreamStream: Stream<Item = Result<TelemetryStreamResponse, Status>> + Send + 'static

Server streaming response type for the OpenTelemetryStream method.

source

type OpenCommandStreamStream: Stream<Item = Result<CommandStreamResponse, Status>> + Send + 'static

Server streaming response type for the OpenCommandStream method.

Required Methods§

source

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

source

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

source

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

source

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

source

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

Implementors§