Enum tungstenite::stream::Mode [−][src]
pub enum Mode { Plain, Tls, }
Stream mode, either plain TCP or TLS.
Variants
Plain
Plain mode (ws://
URL).
Tls
TLS mode (wss://
URL).
Trait Implementations
impl Clone for Mode
[src]
impl Clone for Mode
fn clone(&self) -> Mode
[src]
fn clone(&self) -> Mode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Mode
[src]
impl Copy for Mode
impl Debug for Mode
[src]
impl Debug for Mode