Enum grpcio::MethodType
source · [−]pub enum MethodType {
Unary,
ClientStreaming,
ServerStreaming,
Duplex,
}
Expand description
Method types supported by gRPC.
Variants
Unary
Single request sent from client, single response received from server.
ClientStreaming
Stream of requests sent from client, single response received from server.
ServerStreaming
Single request sent from client, stream of responses received from server.
Duplex
Both server and client can stream arbitrary number of requests and responses simultaneously.
Trait Implementations
sourceimpl Clone for MethodType
impl Clone for MethodType
sourcefn clone(&self) -> MethodType
fn clone(&self) -> MethodType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for MethodType
Auto Trait Implementations
impl RefUnwindSafe for MethodType
impl Send for MethodType
impl Sync for MethodType
impl Unpin for MethodType
impl UnwindSafe for MethodType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more