pub enum WebSocketSendMessageType {
Text,
Binary,
Ping,
Pong,
CloseReply,
}
Expand description
Websocket send message type used when sending a websocket frame
Variants§
Text
A UTF8 encoded text string
Binary
Binary data
Ping
An unsolicited ping message
Pong
A pong message in response to a ping message
CloseReply
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<WebSocketSendMessageType> for WebSocketSendMessageType
impl PartialEq<WebSocketSendMessageType> for WebSocketSendMessageType
source§fn eq(&self, other: &WebSocketSendMessageType) -> bool
fn eq(&self, other: &WebSocketSendMessageType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for WebSocketSendMessageType
impl Eq for WebSocketSendMessageType
impl StructuralEq for WebSocketSendMessageType
impl StructuralPartialEq for WebSocketSendMessageType
Auto Trait Implementations§
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