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