Skip to main content

unsupported_protocol_version

Function unsupported_protocol_version 

Source
pub fn unsupported_protocol_version(
    requested: ProtocolVersion,
    supported: &[ProtocolVersion],
) -> Error
Expand description

No version supported by a v2 endpoint is at or below the requested version.

Uses the protocol wire code so legacy v1 error models can carry the v2 diagnostic as an unknown error code without changing the v1 contract.