pub trait OutgoingHandler: Client {
    type HandleInvocationStream;

    // Required methods
    fn invoke_handle<'life0, 'async_trait, B>(
        &'life0 self,
        req: OutgoingRequest<B>,
        opts: Option<RequestOptions>
    ) -> Pin<Box<dyn Future<Output = Result<(Result<IncomingResponse<Box<dyn Stream<Item = Result<StreamItem<Bytes, Option<Fields>>>> + Send + Unpin>>, ErrorCode>, Self::Transmission)>> + Send + 'async_trait>>
       where B: Stream<Item = StreamItem<Bytes, Option<Fields>>> + Send + 'static + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait;
    fn serve_handle<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::HandleInvocationStream>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Types§

Required Methods§

source

fn invoke_handle<'life0, 'async_trait, B>( &'life0 self, req: OutgoingRequest<B>, opts: Option<RequestOptions> ) -> Pin<Box<dyn Future<Output = Result<(Result<IncomingResponse<Box<dyn Stream<Item = Result<StreamItem<Bytes, Option<Fields>>>> + Send + Unpin>>, ErrorCode>, Self::Transmission)>> + Send + 'async_trait>>
where B: Stream<Item = StreamItem<Bytes, Option<Fields>>> + Send + 'static + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

source

fn serve_handle<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<Self::HandleInvocationStream>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Object Safety§

This trait is not object safe.

Implementors§