pub trait Upgrade<T> {
type Error: Error + Send + Sync + 'static;
// Required method
fn upgrade(self) -> Result<T, Self::Error>;
}Expand description
This trait should be implemented for each version of the original type that is not the current one. The upgrade method is called in chains until we get to the last version of the type.