Function check_format_version
pub const fn check_format_version(found: u16) -> Result<(), WireError>Expand description
Checks a version read off the wire against the one this build speaks.
Exposed because a receiver that reads the version itself — peeking the front of a postcard buffer, say, to route a message it will not decode — needs the same answer as the decoder, and needs it as a typed error rather than as prose.
§Errors
WireError::UnsupportedFormatVersion when found is not
FORMAT_VERSION.