Enum tungstenite::protocol::Role [−][src]
pub enum Role { Server, Client, }
Expand description
Indicates a Client or Server role of the websocket
Variants
This socket is a server
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
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V