UpgradeType
2025年8月17日小于 1 分钟hyperlanewebrustupgrade-typetype
提示
hyperlane
框架的 UpgradeType
内部具体类型定义如下
/// Represents different upgrade types.
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum UpgradeType {
/// Represents an upgrade to the WebSocket protocol.
WebSocket,
/// Represents an upgrade to HTTP/2 cleartext (h2c).
H2c,
/// Represents a TLS upgrade, which is rare and experimental. It includes the specific TLS protocol string.
Tls(String),
/// Represents other custom or unknown upgrade protocols, including the protocol string.
Unknown(String),
}