pub enum Stream {
Start(MessageType),
Next(MessageType),
End(MessageType),
}
Expand description
Represents a fragment of a WebSocket message.
Variants§
Start(MessageType)
Indicates tCopyhe start of a new message fragment of the given MessageType.
Next(MessageType)
Indicates the continuation of the current message fragment.
End(MessageType)
Indicates the end of the current message fragment.
Implementations§
Source§impl Stream
impl Stream
Sourcepub fn ty(&self) -> MessageType
pub fn ty(&self) -> MessageType
Get MessageType from Stream
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stream
impl RefUnwindSafe for Stream
impl Send for Stream
impl Sync for Stream
impl Unpin for Stream
impl UnwindSafe for Stream
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