pub enum Type {
Bidirectional,
Unidirectional,
}
Expand description
The Stream Type defines whether data can be transmitted in both directions or only in a single direction.
Variants§
Bidirectional
Data can be transmitted on the Stream in both directions
Unidirectional
Data can be transmitted on the Stream only in a single direction
Implementations§
source§impl StreamType
impl StreamType
pub fn is_bidirectional(self) -> bool
pub fn is_unidirectional(self) -> bool
Trait Implementations§
source§impl Clone for StreamType
impl Clone for StreamType
source§fn clone(&self) -> StreamType
fn clone(&self) -> StreamType
Returns a copy of the value. Read more
1.0.0 · 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 StreamType
impl Debug for StreamType
source§impl IntoEvent<StreamType> for &StreamType
impl IntoEvent<StreamType> for &StreamType
fn into_event(self) -> StreamType
source§impl PartialEq for StreamType
impl PartialEq for StreamType
source§fn eq(&self, other: &StreamType) -> bool
fn eq(&self, other: &StreamType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for StreamType
impl Eq for StreamType
impl StructuralPartialEq for StreamType
Auto Trait Implementations§
impl Freeze for StreamType
impl RefUnwindSafe for StreamType
impl Send for StreamType
impl Sync for StreamType
impl Unpin for StreamType
impl UnwindSafe for StreamType
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