| use serde::Deserialize; | |
| use serde::Serialize; | |
| use super::Capability; | |
| use super::SupportedProtocolVersions; | |
| /// Explains why connection negotiation was rejected before any session opened. | |
| pub enum HandshakeRejectReason { | |
| NoCompatibleVersion { | |
| supported_versions: SupportedProtocolVersions, | |
| }, | |
| MissingRequiredCapability { capability: Capability }, | |
| InvalidHello { message: String }, | |
| } | |