The following enumerations are available globally.
The result of an ALPN negotiation.
In a system expecting an ALPN negotiation to occur, a wide range of possible things can happen. In the best case scenario it is possible for the server and client to agree on a protocol to speak, in which case this will be
.negotiatedwith the relevant protocol provided as the associated value. However, if for any reason it was not possible to negotiate a protocol, whether because one peer didn’t support ALPN or because there was no protocol overlap, we should
fallbackto a default choice of some kind.
Exactly what to do when falling back is the responsibility of a specific implementation.See more
public enum ALPNResult : Equatable