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 Clone for Role[src]
fn clone(&self) -> Role
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more