Enum tungstenite::stream::Mode[][src]

pub enum Mode {
    Plain,
    Tls,
}

Stream mode, either plain TCP or TLS.

Variants

Plain mode (ws:// URL).

TLS mode (wss:// URL).

Trait Implementations

impl Clone for Mode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Mode
[src]

impl Debug for Mode
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Mode

impl Sync for Mode