Enum tungstenite::protocol::Role[][src]

pub enum Role {
    Server,
    Client,
}

Indicates a Client or Server role of the websocket

Variants

This socket is a server

This socket is a client

Trait Implementations

impl Debug for Role
[src]

Formats the value using the given formatter. Read more

impl Clone for Role
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Role
[src]

Auto Trait Implementations

impl Send for Role

impl Sync for Role