Enum tungstenite::protocol::Role [−][src]
pub enum Role { Server, Client, }
Indicates a Client or Server role of the websocket
Variants
Server
This socket is a server
Client
This socket is a client
Trait Implementations
impl Debug for Role
[src]
impl Debug for Role
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Role
[src]
impl Clone for Role
fn clone(&self) -> Role
[src]
fn clone(&self) -> Role
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 Role
[src]
impl Copy for Role