Skip to main content

Module error

Module error 

Source
Expand description

Error types for crate::version.

Two distinct failure modes, each a plain struct rather than an enum variant: UnsupportedVersion (the negotiated range was empty / a decoder rejected an unknown version) and UnsupportedFieldVersion (a field was set while encoding a version that does not carry it). Context fields are always populated.

Structs§

UnsupportedFieldVersion
A field was set while encoding a protocol version where that field does not exist.
UnsupportedVersion
API version negotiation produced no mutually-supported version, or a generated decoder rejected an unknown version.