pub trait OutgoingHandler: Client {
    type HandleInvocationStream;

    // Required methods
    fn invoke_handle<'life0, 'async_trait>(
        &'life0 self,
        request: Request<impl 'async_trait + Stream<Item = Bytes> + Send + 'static, impl 'async_trait + Future<Output = Option<Fields>> + Send + 'static>,
        options: Option<RequestOptions>
    ) -> Pin<Box<dyn Future<Output = Result<(Result<IncomingResponse, ErrorCode>, Self::Transmission)>> + Send + 'async_trait>>
       where 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>( &'life0 self, request: Request<impl 'async_trait + Stream<Item = Bytes> + Send + 'static, impl 'async_trait + Future<Output = Option<Fields>> + Send + 'static>, options: Option<RequestOptions> ) -> Pin<Box<dyn Future<Output = Result<(Result<IncomingResponse, ErrorCode>, Self::Transmission)>> + Send + 'async_trait>>
where 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§

source§

impl<T: Client> OutgoingHandler for T

§

type HandleInvocationStream = Pin<Box<dyn Stream<Item = Result<AcceptedInvocation<<T as Client>::Context, (Request<Box<dyn Stream<Item = Result<Bytes, Error>> + Unpin + Send>, Pin<Box<dyn Future<Output = Result<Option<Vec<(String, Vec<Bytes>)>>, Error>> + Send>>>, Option<RequestOptions>), <T as Client>::Subject, <<T as Client>::Acceptor as Acceptor>::Transmitter>, Error>> + Send>>