Enum reproto_core::RpChannel
[−]
[src]
pub enum RpChannel<F: 'static> where
F: Flavor, { Unary { ty: F::Type, }, Streaming { ty: F::Type, }, }
Variants
Unary
Single send.
Fields of Unary
ty: F::Type |
Streaming
Multiple sends.
Fields of Streaming
ty: F::Type |
Methods
impl<F: 'static> RpChannel<F> where
F: Flavor,
[src]
F: Flavor,
pub fn ty(&self) -> &F::Type
[src]
Get the type of the channel.
pub fn is_streaming(&self) -> bool
[src]
Check if channel is streaming.
Trait Implementations
impl<F: Debug + 'static> Debug for RpChannel<F> where
F: Flavor,
F::Type: Debug,
F::Type: Debug,
[src]
F: Flavor,
F::Type: Debug,
F::Type: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<F: Clone + 'static> Clone for RpChannel<F> where
F: Flavor,
F::Type: Clone,
F::Type: Clone,
[src]
F: Flavor,
F::Type: Clone,
F::Type: Clone,
fn clone(&self) -> RpChannel<F>
[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
impl<F: PartialEq + 'static> PartialEq for RpChannel<F> where
F: Flavor,
F::Type: PartialEq,
F::Type: PartialEq,
[src]
F: Flavor,
F::Type: PartialEq,
F::Type: PartialEq,
fn eq(&self, __arg_0: &RpChannel<F>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RpChannel<F>) -> bool
[src]
This method tests for !=
.
impl<F: Eq + 'static> Eq for RpChannel<F> where
F: Flavor,
F::Type: Eq,
F::Type: Eq,
[src]
F: Flavor,
F::Type: Eq,
F::Type: Eq,
impl<F: 'static> Display for RpChannel<F> where
F: Flavor,
[src]
F: Flavor,
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<F: 'static, T> Translate<T> for RpChannel<F> where
F: Flavor,
T: Translator<Source = F>,
[src]
F: Flavor,
T: Translator<Source = F>,