pub enum WebSocketSendMessageType {
Text = 1,
Binary = 2,
Ping = 9,
Pong = 10,
CloseReply = 11,
}
Expand description
Websocket send message type used when sending a websocket frame
Variants§
Text = 1
A UTF8 encoded text string
Binary = 2
Binary data
Ping = 9
An unsolicited ping message
Pong = 10
A pong message in response to a ping message
CloseReply = 11
A close message in response to a close message from the other party. Used to complete a
closing handshake. If initiate a close handshake use the close
function
Trait Implementations§
Source§impl Clone for WebSocketSendMessageType
impl Clone for WebSocketSendMessageType
Source§fn clone(&self) -> WebSocketSendMessageType
fn clone(&self) -> WebSocketSendMessageType
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 WebSocketSendMessageType
impl Debug for WebSocketSendMessageType
Source§impl PartialEq for WebSocketSendMessageType
impl PartialEq for WebSocketSendMessageType
impl Copy for WebSocketSendMessageType
impl Eq for WebSocketSendMessageType
impl StructuralPartialEq for WebSocketSendMessageType
Auto Trait Implementations§
impl Freeze for WebSocketSendMessageType
impl RefUnwindSafe for WebSocketSendMessageType
impl Send for WebSocketSendMessageType
impl Sync for WebSocketSendMessageType
impl Unpin for WebSocketSendMessageType
impl UnwindSafe for WebSocketSendMessageType
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