pub trait StreamService:
    Send
    + Sync
    + 'static {
    // Required methods
    fn create<'life0, 'async_trait>(
        &'life0 self,
        request: Request<StreamCreateRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<StreamCreateResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get<'life0, 'async_trait>(
        &'life0 self,
        request: Request<StreamGetRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<StreamGetResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update<'life0, 'async_trait>(
        &'life0 self,
        request: Request<StreamUpdateRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<StreamUpdateResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn delete<'life0, 'async_trait>(
        &'life0 self,
        request: Request<StreamDeleteRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<StreamDeleteResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn list<'life0, 'async_trait>(
        &'life0 self,
        request: Request<StreamListRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<StreamListResponse>, 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 StreamServiceServer.

Required Methods§

Source

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

Source

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

Source

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

Source

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

Source

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

Implementors§