pub enum GrpcMethodType {
Unary,
ClientStreaming,
ServerStreaming,
BidirectionalStreaming,
}Expand description
gRPC method type (streaming mode)
Variants§
Unary
Unary RPC: single request, single response
ClientStreaming
Client streaming: stream of requests, single response
ServerStreaming
Server streaming: single request, stream of responses
BidirectionalStreaming
Bidirectional streaming: stream of requests and responses
Trait Implementations§
Source§impl Clone for GrpcMethodType
impl Clone for GrpcMethodType
Source§fn clone(&self) -> GrpcMethodType
fn clone(&self) -> GrpcMethodType
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 moreSource§impl Debug for GrpcMethodType
impl Debug for GrpcMethodType
Source§impl PartialEq for GrpcMethodType
impl PartialEq for GrpcMethodType
impl StructuralPartialEq for GrpcMethodType
Auto Trait Implementations§
impl Forget for GrpcMethodType
impl Freeze for GrpcMethodType
impl Move for GrpcMethodType
impl RefUnwindSafe for GrpcMethodType
impl Send for GrpcMethodType
impl Sync for GrpcMethodType
impl Unpin for GrpcMethodType
impl UnsafeUnpin for GrpcMethodType
impl UnwindSafe for GrpcMethodType
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