Enum wisp_mux::StreamType
source · pub enum StreamType {
Tcp,
Udp,
Unknown(u8),
}
Expand description
Wisp stream type.
Variants§
Tcp
TCP Wisp stream.
Udp
UDP Wisp stream.
Unknown(u8)
Unknown Wisp stream type used for custom streams by protocol extensions.
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 From<StreamType> for u8
impl From<StreamType> for u8
source§fn from(value: StreamType) -> Self
fn from(value: StreamType) -> Self
Converts to this type from the input type.
source§impl From<u8> for StreamType
impl From<u8> for 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 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