pub enum WebSocketMessageType {
Text,
Binary,
Ping,
Pong,
Close,
}Expand description
WebSocket message types for pool optimization
Variants§
Text
Text-based WebSocket message (typically JSON)
Binary
Binary WebSocket message (raw bytes)
Ping
Ping control frame for connection keep-alive
Pong
Pong control frame in response to ping
Close
Close control frame to terminate connection
Trait Implementations§
Source§impl Clone for WebSocketMessageType
impl Clone for WebSocketMessageType
Source§fn clone(&self) -> WebSocketMessageType
fn clone(&self) -> WebSocketMessageType
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WebSocketMessageType
impl Debug for WebSocketMessageType
Source§impl PartialEq for WebSocketMessageType
impl PartialEq for WebSocketMessageType
impl Copy for WebSocketMessageType
impl Eq for WebSocketMessageType
impl StructuralPartialEq for WebSocketMessageType
Auto Trait Implementations§
impl Freeze for WebSocketMessageType
impl RefUnwindSafe for WebSocketMessageType
impl Send for WebSocketMessageType
impl Sync for WebSocketMessageType
impl Unpin for WebSocketMessageType
impl UnwindSafe for WebSocketMessageType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.