Trait rouille::Upgrade

source ·
pub trait Upgrade {
    // Required method
    fn build(&mut self, socket: Box<dyn ReadWrite + Send>);
}
Expand description

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§

source

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

Initializes the object with the given socket.

Implementations on Foreign Types§

source§

impl Upgrade for Sender<Websocket>

source§

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

Implementors§