Struct ws::Handshake [] [src]

pub struct Handshake {
    pub request: Request,
    pub response: Response,
}

A struct representing the two halves of the WebSocket handshake.

Fields

request: Request response: Response

Methods

impl Handshake
[src]

fn new(req: Request, res: Response) -> Handshake

Trait Implementations

impl Debug for Handshake
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Default for Handshake
[src]

fn default() -> Handshake

Returns the "default value" for a type. Read more