pub enum WebSocketProtocol {
Ws,
Wss,
}
Expand description
A websocket protocol
Variants§
Trait Implementations§
Source§impl Clone for WebSocketProtocol
impl Clone for WebSocketProtocol
Source§fn clone(&self) -> WebSocketProtocol
fn clone(&self) -> WebSocketProtocol
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 WebSocketProtocol
impl Debug for WebSocketProtocol
Source§impl Into<WebSocketProtocol> for HttpProtocol
impl Into<WebSocketProtocol> for HttpProtocol
Source§fn into(self) -> WebSocketProtocol
fn into(self) -> WebSocketProtocol
Converts this type into the (usually inferred) input type.
Source§impl PartialEq for WebSocketProtocol
impl PartialEq for WebSocketProtocol
Source§impl ToString for WebSocketProtocol
impl ToString for WebSocketProtocol
impl Copy for WebSocketProtocol
impl Eq for WebSocketProtocol
impl StructuralPartialEq for WebSocketProtocol
Auto Trait Implementations§
impl Freeze for WebSocketProtocol
impl RefUnwindSafe for WebSocketProtocol
impl Send for WebSocketProtocol
impl Sync for WebSocketProtocol
impl Unpin for WebSocketProtocol
impl UnwindSafe for WebSocketProtocol
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