pub enum StreamMessageData {
Start(StreamStartData),
Data(StreamDataData),
End(StreamEndData),
Control(StreamControlData),
}
Expand description
流式消息数据联合体
Variants§
Trait Implementations§
Source§impl Clone for StreamMessageData
impl Clone for StreamMessageData
Source§fn clone(&self) -> StreamMessageData
fn clone(&self) -> StreamMessageData
Returns a duplicate 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 StreamMessageData
impl Debug for StreamMessageData
Source§impl<'de> Deserialize<'de> for StreamMessageData
impl<'de> Deserialize<'de> for StreamMessageData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StreamMessageData
impl RefUnwindSafe for StreamMessageData
impl Send for StreamMessageData
impl Sync for StreamMessageData
impl Unpin for StreamMessageData
impl UnwindSafe for StreamMessageData
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