pub trait Message: Sized {
const VERSIONS: VersionRange;
const DEPRECATED_VERSIONS: Option<VersionRange>;
}Expand description
An API request or response.
All API messages must provide a set of valid versions.
Required Associated Constants§
Sourceconst VERSIONS: VersionRange
const VERSIONS: VersionRange
The valid versions for this message.
Sourceconst DEPRECATED_VERSIONS: Option<VersionRange>
const DEPRECATED_VERSIONS: Option<VersionRange>
The deprecated versions for this message.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".