pub enum RpcCardinality {
Unary,
ServerStreaming,
ClientStreaming,
BidiStreaming,
}Expand description
Message multiplicity in each direction of an RPC.
Variants§
Unary
One request and one response.
ServerStreaming
One request and a stream of responses.
ClientStreaming
A stream of requests and one response.
BidiStreaming
Independent request and response streams.
Trait Implementations§
Source§impl Clone for RpcCardinality
impl Clone for RpcCardinality
Source§fn clone(&self) -> RpcCardinality
fn clone(&self) -> RpcCardinality
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RpcCardinality
Source§impl Debug for RpcCardinality
impl Debug for RpcCardinality
impl Eq for RpcCardinality
Source§impl Hash for RpcCardinality
impl Hash for RpcCardinality
Source§impl PartialEq for RpcCardinality
impl PartialEq for RpcCardinality
impl StructuralPartialEq for RpcCardinality
Auto Trait Implementations§
impl Freeze for RpcCardinality
impl RefUnwindSafe for RpcCardinality
impl Send for RpcCardinality
impl Sync for RpcCardinality
impl Unpin for RpcCardinality
impl UnsafeUnpin for RpcCardinality
impl UnwindSafe for RpcCardinality
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