Enum tungstenite::protocol::Role [−][src]
pub enum Role {
Server,
Client,
}
Expand description
Indicates a Client or Server role of the websocket
Variants
Server
This socket is a server
Client
This socket is a client
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Role
impl UnwindSafe for Role
Blanket Implementations
Mutably borrows from an owned value. Read more