Trait PoulpeMultiplexer

Source
pub trait PoulpeMultiplexer:
    Send
    + Sync
    + 'static {
    type GetStatesStream: Stream<Item = Result<PoulpeStates, Status>> + Send + 'static;

    // Required methods
    fn get_poulpe_ids<'life0, 'async_trait>(
        &'life0 self,
        request: Request<()>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<PoulpeIds>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_states<'life0, 'async_trait>(
        &'life0 self,
        request: Request<StateStreamRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::GetStatesStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_commands<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Streaming<PoulpeCommands>>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<()>, 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 PoulpeMultiplexerServer.

Required Associated Types§

Source

type GetStatesStream: Stream<Item = Result<PoulpeStates, Status>> + Send + 'static

Server streaming response type for the GetStates method.

Required Methods§

Source

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

Source

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

Source

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

Implementors§