pub enum WsProtocol {
Raw,
SocketIO,
SockJS,
SignalR,
Unknown,
}Expand description
The WebSocket protocol/library in use.
Variants§
Raw
Standard WebSocket API.
SocketIO
Socket.IO protocol.
SockJS
SockJS protocol.
SignalR
ASP.NET SignalR.
Unknown
Unknown protocol wrapper.
Trait Implementations§
Source§impl Clone for WsProtocol
impl Clone for WsProtocol
Source§fn clone(&self) -> WsProtocol
fn clone(&self) -> WsProtocol
Returns a duplicate 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 WsProtocol
impl Debug for WsProtocol
Source§impl<'de> Deserialize<'de> for WsProtocol
impl<'de> Deserialize<'de> for WsProtocol
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WsProtocol
impl PartialEq for WsProtocol
Source§impl Serialize for WsProtocol
impl Serialize for WsProtocol
impl Eq for WsProtocol
impl StructuralPartialEq for WsProtocol
Auto Trait Implementations§
impl Freeze for WsProtocol
impl RefUnwindSafe for WsProtocol
impl Send for WsProtocol
impl Sync for WsProtocol
impl Unpin for WsProtocol
impl UnsafeUnpin for WsProtocol
impl UnwindSafe for WsProtocol
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