pub enum StreamKind {
Sender,
Receiver,
}
Available on crate feature
feature
only.Expand description
§Note
The names are in the perspective of a client so a StreamKind of Sender will mean the client sends data and the server receives it.
Variants§
Implementations§
Source§impl StreamKind
impl StreamKind
pub fn into_kind_message(self) -> MessageKind
Trait Implementations§
Source§impl Clone for StreamKind
impl Clone for StreamKind
Source§fn clone(&self) -> StreamKind
fn clone(&self) -> StreamKind
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 StreamKind
impl Debug for StreamKind
Source§impl From<MessageKind> for StreamKind
impl From<MessageKind> for StreamKind
Source§fn from(m: MessageKind) -> Self
fn from(m: MessageKind) -> Self
Converts to this type from the input type.
Source§impl Hash for StreamKind
impl Hash for StreamKind
Source§impl PartialEq for StreamKind
impl PartialEq for StreamKind
impl Copy for StreamKind
impl Eq for StreamKind
impl StructuralPartialEq for StreamKind
Auto Trait Implementations§
impl Freeze for StreamKind
impl RefUnwindSafe for StreamKind
impl Send for StreamKind
impl Sync for StreamKind
impl Unpin for StreamKind
impl UnwindSafe for StreamKind
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