pub trait ClientStreamingHandler<Req, Res>:
Send
+ Sync
+ 'static{
type Body: Encodable<Res> + Send + 'static;
// Required method
fn call(
&self,
ctx: RequestContext,
requests: ServiceStream<Req>,
) -> BoxFuture<'static, ServiceResult<Self::Body>>;
}Expand description
Trait for client streaming RPC handlers.
Required Associated Types§
Required Methods§
Sourcefn call(
&self,
ctx: RequestContext,
requests: ServiceStream<Req>,
) -> BoxFuture<'static, ServiceResult<Self::Body>>
fn call( &self, ctx: RequestContext, requests: ServiceStream<Req>, ) -> BoxFuture<'static, ServiceResult<Self::Body>>
Handle a client streaming RPC request.