#[non_exhaustive]pub enum StreamMessageKind {
Data(StreamDataEvent),
Control(StreamControlEvent),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Data(StreamDataEvent)
Control(StreamControlEvent)
Trait Implementations§
Source§impl Clone for StreamMessageKind
impl Clone for StreamMessageKind
Source§fn clone(&self) -> StreamMessageKind
fn clone(&self) -> StreamMessageKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StreamMessageKind
impl RefUnwindSafe for StreamMessageKind
impl Send for StreamMessageKind
impl Sync for StreamMessageKind
impl Unpin for StreamMessageKind
impl UnsafeUnpin for StreamMessageKind
impl UnwindSafe for StreamMessageKind
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