Trait wrpc_interface_http::OutgoingHandler
source · 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§
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,
Object Safety§
This trait is not object safe.