pub fn on_upgrade<F, U>(self, func: F) -> impl Reply
    where
        F: FnOnce(WebSocket) -> U + Send + 'static,
        U: Future<Item = (), Error = ()> + Send + 'static,
    {
        WsReply {
            ws: self,
            on_upgrade: func,
        }
    }
/// Finish the upgrade, passing a function to handle the `WebSocket`.
///
/// The passed function must return a `Future`.
Finish the upgrade, passing a function to handle the `WebSocket`.
The passed function must return a `Future`.
Finish the upgrade passing a function to handle the ` WebSocket ` . The passed function must return a ` Future ` .
pub fn on_upgrade<F, U>(self, func: F) -> impl Reply
    where
        F: FnOnce(WebSocket) -> U + Send + 'static,
        U: Future<Item = (), Error = ()> + Send + 'static,
    {
        WsReply {
            ws: self,
            on_upgrade: func,
        }
    }
pub fn on_upgrade < F , U > ( self , func : F ) -> impl Reply where F : FnOnce ( WebSocket ) -> U + Send + ' static , U : Future < Item = ( ) , Error = ( ) > + Send + ' static , { WsReply { ws : self , on_upgrade : func , } }
Finish the upgrade, passing a function to handle the `WebSocket`.
Finish the upgrade passing a function to handle the ` WebSocket ` .
self
func
F
self
func
F