pub struct FnClientStreamingHandler<F> { /* private fields */ }Expand description
Wrapper that implements ClientStreamingHandler for async functions.
Implementations§
Source§impl<F> FnClientStreamingHandler<F>
impl<F> FnClientStreamingHandler<F>
Trait Implementations§
Source§impl<F, Fut, Req, Res, B> ClientStreamingHandler<Req, Res> for FnClientStreamingHandler<F>where
F: Fn(RequestContext, ServiceStream<Req>) -> Fut + Send + Sync + 'static,
Fut: Future<Output = ServiceResult<B>> + Send + 'static,
Req: Message + Send + 'static,
Res: Message + Send + 'static,
B: Encodable<Res> + Send + 'static,
impl<F, Fut, Req, Res, B> ClientStreamingHandler<Req, Res> for FnClientStreamingHandler<F>where
F: Fn(RequestContext, ServiceStream<Req>) -> Fut + Send + Sync + 'static,
Fut: Future<Output = ServiceResult<B>> + Send + 'static,
Req: Message + Send + 'static,
Res: Message + Send + 'static,
B: Encodable<Res> + Send + 'static,
Source§fn call(
&self,
ctx: RequestContext,
requests: ServiceStream<Req>,
) -> BoxFuture<'static, ServiceResult<B>>
fn call( &self, ctx: RequestContext, requests: ServiceStream<Req>, ) -> BoxFuture<'static, ServiceResult<B>>
Handle a client streaming RPC request.
Auto Trait Implementations§
impl<F> Freeze for FnClientStreamingHandler<F>
impl<F> RefUnwindSafe for FnClientStreamingHandler<F>where
F: RefUnwindSafe,
impl<F> Send for FnClientStreamingHandler<F>
impl<F> Sync for FnClientStreamingHandler<F>
impl<F> Unpin for FnClientStreamingHandler<F>
impl<F> UnsafeUnpin for FnClientStreamingHandler<F>
impl<F> UnwindSafe for FnClientStreamingHandler<F>where
F: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more