pub enum WebSocketReceiveMessageType {
Text = 1,
Binary = 2,
CloseCompleted = 7,
CloseMustReply = 8,
Ping = 9,
Pong = 10,
}
Expand description
Websocket receive message type use when reading a websocket frame
Variants§
Text = 1
A UTF8 encoded text string
Binary = 2
Binary data
CloseCompleted = 7
Signals that the close handshake is complete
CloseMustReply = 8
Signals that the other party has initiated the close handshake. If you receive this message
you should respond with a WebSocketSendMessageType::CloseReply
with the same payload as
close message
Ping = 9
A ping message that you should respond to with a WebSocketSendMessageType::Pong
message
including the same payload as the ping
Pong = 10
A pong message in response to a ping message
Trait Implementations§
Source§impl Clone for WebSocketReceiveMessageType
impl Clone for WebSocketReceiveMessageType
Source§fn clone(&self) -> WebSocketReceiveMessageType
fn clone(&self) -> WebSocketReceiveMessageType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WebSocketReceiveMessageType
impl Debug for WebSocketReceiveMessageType
impl Copy for WebSocketReceiveMessageType
impl Eq for WebSocketReceiveMessageType
impl StructuralPartialEq for WebSocketReceiveMessageType
Auto Trait Implementations§
impl Freeze for WebSocketReceiveMessageType
impl RefUnwindSafe for WebSocketReceiveMessageType
impl Send for WebSocketReceiveMessageType
impl Sync for WebSocketReceiveMessageType
impl Unpin for WebSocketReceiveMessageType
impl UnwindSafe for WebSocketReceiveMessageType
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