pub trait Deprecable {
const TYPE_NAME: &'static str;
const MIN_SUPPORTED_APP_VERSION: &'static str;
// Provided method
fn error() -> DeprecatedVersionError { ... }
}Expand description
This trait should be implemented for types that have deprecated versions. You can then use them
inside the dispatch enum by wrapping them into the Deprecated type.
Required Associated Constants§
Provided Methods§
fn error() -> DeprecatedVersionError
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.