logo

Function salvo::hyper::upgrade::on

[]
pub fn on<T>(msg: T) -> OnUpgradeNotable traits for OnUpgradeimpl Future for OnUpgrade    type Output = Result<Upgraded, Error>; where
    T: CanUpgrade, 
Expand description

Gets a pending HTTP upgrade from this message.

This can be called on the following types:

  • http::Request<B>
  • http::Response<B>
  • &mut http::Request<B>
  • &mut http::Response<B>