Enum reproto_core::RpChannel
[−]
[src]
pub enum RpChannel { Unary { ty: RpType, }, Streaming { ty: RpType, }, }
Variants
Unary
Single send.
Fields of Unary
ty: RpType |
Streaming
Multiple sends.
Fields of Streaming
ty: RpType |
Methods
impl RpChannel
[src]
pub fn ty(&self) -> &RpType
[src]
Get the type of the channel.
pub fn is_streaming(&self) -> bool
[src]
Check if channel is streaming.
Trait Implementations
impl Debug for RpChannel
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for RpChannel
[src]
fn clone(&self) -> RpChannel
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more