pub trait WebsocketHandler {
    // Required method
    fn attemp_upgrade<'life0, 'async_trait>(
        &'life0 self,
        req: Request<Incoming>
    ) -> Pin<Box<dyn Future<Output = FaucetResult<UpgradeStatus>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn attemp_upgrade<'life0, 'async_trait>( &'life0 self, req: Request<Incoming> ) -> Pin<Box<dyn Future<Output = FaucetResult<UpgradeStatus>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§