pub enum DataType {
Stream(Stream),
Complete(MessageType),
}
Expand description
Data that is either complete or fragmented.
Variants§
Stream(Stream)
The message is split into fragments, each of which is sent as a separate WebSocket message with the [Fragment] variant.
Complete(MessageType)
A complete WebSocket message in a single transmission.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataType
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnwindSafe for DataType
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