pub enum IncomingPayload {
Message(Message),
Ping(Bytes),
Pong(Bytes),
Close(PeerClose),
}Expand description
Received business message or protocol-control payload.
Variants§
Message(Message)
Text or binary business message.
Ping(Bytes)
Ping control frame sent by the peer.
Pong(Bytes)
Pong control frame sent by the peer.
Close(PeerClose)
Close control frame sent by the peer.
Trait Implementations§
Source§impl Clone for IncomingPayload
impl Clone for IncomingPayload
Auto Trait Implementations§
impl !Freeze for IncomingPayload
impl RefUnwindSafe for IncomingPayload
impl Send for IncomingPayload
impl Sync for IncomingPayload
impl Unpin for IncomingPayload
impl UnsafeUnpin for IncomingPayload
impl UnwindSafe for IncomingPayload
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