pub enum RpcType {
UNARY = 0,
STREAMING = 1,
STREAMING_FROM_CLIENT = 2,
STREAMING_FROM_SERVER = 3,
STREAMING_BOTH_WAYS = 4,
}Variants§
UNARY = 0
STREAMING = 1
STREAMING_FROM_CLIENT = 2
STREAMING_FROM_SERVER = 3
STREAMING_BOTH_WAYS = 4
Trait Implementations§
Source§impl ProtobufEnum for RpcType
impl ProtobufEnum for RpcType
Source§fn from_i32(value: i32) -> Option<RpcType>
fn from_i32(value: i32) -> Option<RpcType>
Try to create an enum from
i32 value.
Return None if value is unknown.Source§fn enum_descriptor_static() -> &'static EnumDescriptor
fn enum_descriptor_static() -> &'static EnumDescriptor
Get enum descriptor by type.
Source§fn descriptor(&self) -> &'static EnumValueDescriptor
fn descriptor(&self) -> &'static EnumValueDescriptor
Get enum value descriptor.
Source§fn enum_descriptor(&self) -> &'static EnumDescriptor
fn enum_descriptor(&self) -> &'static EnumDescriptor
Get enum descriptor.
Source§impl ProtobufValue for RpcType
impl ProtobufValue for RpcType
Source§fn as_ref(&self) -> ProtobufValueRef<'_>
fn as_ref(&self) -> ProtobufValueRef<'_>
As ref
Source§fn is_non_zero(&self) -> bool
fn is_non_zero(&self) -> bool
Is value non-zero?
Source§fn as_ref_copy(&self) -> ReflectValueRef<'static>
fn as_ref_copy(&self) -> ReflectValueRef<'static>
impl Copy for RpcType
impl Eq for RpcType
impl StructuralPartialEq for RpcType
Auto Trait Implementations§
impl Freeze for RpcType
impl RefUnwindSafe for RpcType
impl Send for RpcType
impl Sync for RpcType
impl Unpin for RpcType
impl UnwindSafe for RpcType
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