Trait rouille::Upgrade[][src]

pub trait Upgrade {
    fn build(&mut self, socket: Box<dyn ReadWrite + Send>);
}

Trait for objects that can take ownership of a raw connection to the client data.

The purpose of this trait is to be used with the Connection: Upgrade header, hence its name.

Required methods

fn build(&mut self, socket: Box<dyn ReadWrite + Send>)[src]

Initializes the object with the given socket.

Loading content...

Implementations on Foreign Types

impl Upgrade for Sender<Websocket>[src]

Loading content...

Implementors

Loading content...