Enum actix_ws::AggregatedMessage
source · 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
source§impl PartialEq for AggregatedMessage
impl PartialEq for AggregatedMessage
source§fn eq(&self, other: &AggregatedMessage) -> bool
fn eq(&self, other: &AggregatedMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AggregatedMessage
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 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