pub trait Versioned<Err: Error>: Sized {
type Output;
const VERSION: u32;
}Expand description
Versioned trait This trait is meant to be implemented either by the struct itself or by a version container.
The default methods do not need to be changed unelss you want to customize the behaviour of how versions are treated.
E defines the error type for the versioning process and encoding and decoding.
Output defines the type of the data that is being versioned.
Version defines the version of the data that is being versioned.
Required Associated Constants§
Required Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.