pub enum AggregatedMessage {
Text(ByteString),
Binary(Bytes),
Ping(Bytes),
Pong(Bytes),
Close(Option<CloseReason>),
}Expand description
WebSocket message with any continuations aggregated together.
Variants§
Text(ByteString)
Text message.
Binary(Bytes)
Binary message.
Ping(Bytes)
Ping message.
Pong(Bytes)
Pong message.
Close(Option<CloseReason>)
Close message with optional reason.
Trait Implementations§
Source§impl Debug for AggregatedMessage
impl Debug for AggregatedMessage
impl Eq for AggregatedMessage
Source§impl PartialEq for AggregatedMessage
impl PartialEq for AggregatedMessage
Source§fn eq(&self, other: &AggregatedMessage) -> bool
fn eq(&self, other: &AggregatedMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AggregatedMessage
Auto Trait Implementations§
impl !Freeze for AggregatedMessage
impl RefUnwindSafe for AggregatedMessage
impl Send for AggregatedMessage
impl Sync for AggregatedMessage
impl Unpin for AggregatedMessage
impl UnsafeUnpin for AggregatedMessage
impl UnwindSafe for AggregatedMessage
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