pub enum RpcKind<Unary, Streaming> {
Unary(Unary),
Streaming(Streaming),
Unknown,
}
Expand description
Type of rpc to be awaited
Variants§
Unary(Unary)
This is a unary rpc. It will complete with a single response.
Streaming(Streaming)
This is a streaming rpc. It will complete with a stream of responses.
Unknown
This is an unknown rpc. It will be skipped.
Auto Trait Implementations§
impl<Unary, Streaming> Freeze for RpcKind<Unary, Streaming>
impl<Unary, Streaming> RefUnwindSafe for RpcKind<Unary, Streaming>where
Unary: RefUnwindSafe,
Streaming: RefUnwindSafe,
impl<Unary, Streaming> Send for RpcKind<Unary, Streaming>
impl<Unary, Streaming> Sync for RpcKind<Unary, Streaming>
impl<Unary, Streaming> Unpin for RpcKind<Unary, Streaming>
impl<Unary, Streaming> UnwindSafe for RpcKind<Unary, Streaming>where
Unary: UnwindSafe,
Streaming: UnwindSafe,
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