pub enum StreamingShape {
Unary,
ClientStreaming,
ServerStreaming,
Bidirectional,
}Expand description
Message cardinality on each side of a contract method.
Variants§
Unary
One request and one response.
ClientStreaming
A stream of requests and one response.
ServerStreaming
One request and a stream of responses.
Bidirectional
Streams in both directions.
Trait Implementations§
Source§impl Clone for StreamingShape
impl Clone for StreamingShape
Source§fn clone(&self) -> StreamingShape
fn clone(&self) -> StreamingShape
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 StreamingShape
Source§impl Debug for StreamingShape
impl Debug for StreamingShape
impl Eq for StreamingShape
Source§impl Hash for StreamingShape
impl Hash for StreamingShape
Source§impl PartialEq for StreamingShape
impl PartialEq for StreamingShape
impl StructuralPartialEq for StreamingShape
Auto Trait Implementations§
impl Freeze for StreamingShape
impl RefUnwindSafe for StreamingShape
impl Send for StreamingShape
impl Sync for StreamingShape
impl Unpin for StreamingShape
impl UnsafeUnpin for StreamingShape
impl UnwindSafe for StreamingShape
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