pub enum StreamingMode {
Unary,
ServerStreaming,
ClientStreaming,
Bidirectional,
}Expand description
gRPC streaming mode for RPC methods.
Variants§
Unary
Unary RPC (default): single request, single response
ServerStreaming
Server streaming: single request, stream of responses
ClientStreaming
Client streaming: stream of requests, single response
Bidirectional
Bidirectional streaming: stream of requests, stream of responses
Implementations§
Trait Implementations§
Source§impl Clone for StreamingMode
impl Clone for StreamingMode
impl Copy for StreamingMode
Source§impl Debug for StreamingMode
impl Debug for StreamingMode
Source§impl Default for StreamingMode
impl Default for StreamingMode
Source§impl<'de> Deserialize<'de> for StreamingMode
impl<'de> Deserialize<'de> for StreamingMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for StreamingMode
impl Display for StreamingMode
impl Eq for StreamingMode
Source§impl PartialEq for StreamingMode
impl PartialEq for StreamingMode
Source§impl Serialize for StreamingMode
impl Serialize for StreamingMode
impl StructuralPartialEq for StreamingMode
Auto Trait Implementations§
impl Forget for StreamingMode
impl Freeze for StreamingMode
impl Move for StreamingMode
impl RefUnwindSafe for StreamingMode
impl Send for StreamingMode
impl Sync for StreamingMode
impl Unpin for StreamingMode
impl UnsafeUnpin for StreamingMode
impl UnwindSafe for StreamingMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.