pub fn on<T>(msg: T) -> OnUpgradeⓘNotable traits for OnUpgradeimpl Future for OnUpgrade type Output = Result<Upgraded, Error>; where T: CanUpgrade,
impl Future for OnUpgrade type Output = Result<Upgraded, Error>;
Gets a pending HTTP upgrade from this message.