ServerService

Trait ServerService 

Source
pub trait ServerService<'b> {
    // Required methods
    fn descriptor(&self) -> &'static str;
    fn call<'a, 'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        method: &'life1 str,
        input: Box<dyn Stream<Item = Result<Bytes, ServiceError>> + Unpin + Send + 'a>,
    ) -> Pin<Box<dyn Future<Output = Result<Box<dyn Stream<Item = Result<Bytes, ServiceError>> + Unpin + Send + 'a>, ServiceError>> + Send + 'async_trait>>
       where 'a: 'async_trait,
             'a: 'b,
             'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
}

Required Methods§

Source

fn descriptor(&self) -> &'static str

Source

fn call<'a, 'life0, 'life1, 'async_trait>( &'life0 mut self, method: &'life1 str, input: Box<dyn Stream<Item = Result<Bytes, ServiceError>> + Unpin + Send + 'a>, ) -> Pin<Box<dyn Future<Output = Result<Box<dyn Stream<Item = Result<Bytes, ServiceError>> + Unpin + Send + 'a>, ServiceError>> + Send + 'async_trait>>
where 'a: 'async_trait, 'a: 'b, 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Implementors§