/// Attempts to upgrade this `WeakExtendedInstanceInterface<C>` into an
/// `ExtendedInstanceInterface<C>`, if the original extended instance has not been destroyed.
Attempts to upgrade this `WeakExtendedInstanceInterface` into an
`ExtendedInstanceInterface`, if the original extended instance has not been destroyed.
Attempts to upgrade this ` WeakExtendedInstanceInterface ` into an ` ExtendedInstanceInterface ` if the original extended instance has not been destroyed .
pub fn upgrade(&self) -> Result<ExtendedInstanceInterface<C>, ComponentInstanceError> {
        match self {
            WeakExtendedInstanceInterface::Component(p) => {
                Ok(ExtendedInstanceInterface::Component(p.upgrade()?))
            }
            WeakExtendedInstanceInterface::AboveRoot(p) => {
                Ok(ExtendedInstanceInterface::AboveRoot(
                    p.upgrade().ok_or(ComponentInstanceError::cm_instance_unavailable())?,
                ))
            }
        }
    }
pub fn upgrade ( & self ) -> Result < ExtendedInstanceInterface < C > , ComponentInstanceError > { match self { WeakExtendedInstanceInterface :: Component ( p ) => { Ok ( ExtendedInstanceInterface :: Component ( p . upgrade ( ) ? ) ) } WeakExtendedInstanceInterface :: AboveRoot ( p ) => { Ok ( ExtendedInstanceInterface :: AboveRoot ( p . upgrade ( ) . ok_or ( ComponentInstanceError :: cm_instance_unavailable ( ) ) ? , ) ) } } }
Attempts to upgrade this `WeakExtendedInstanceInterface<C>` into an
`ExtendedInstanceInterface<C>`, if the original extended instance has not been destroyed.
Attempts to upgrade this ` WeakExtendedInstanceInterface<C > ` into an ` ExtendedInstanceInterface<C > ` if the original extended instance has not been destroyed .
&self