Upgrade

Trait Upgrade 

Source
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.

Required Associated Types§

Source

type Error: Error + Send + Sync + 'static

Required Methods§

Source

fn upgrade(self) -> Result<T, Self::Error>

Implementors§