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§fn eq(&self, other: &WebSocketProtocol) -> bool
fn eq(&self, other: &WebSocketProtocol) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)