/// Runs the upgrade process, but with the new binary being identical to the
/// previous one.
///
/// payload: the argument to `canister_post_upgrade`
Runs the upgrade process, but with the new binary being identical to the
previous one.

the argument to `canister_post_upgrade`
Runs the upgrade process but with the new binary being identical to the previous one . the argument to ` canister_post_upgrade `
pub async fn upgrade_to_self_binary(&mut self, payload: Vec<u8>) -> Result<(), String> {
        self.take_wasm()?
            .install(self.runtime)
            .with_mode(CanisterInstallMode::Upgrade)
            .install(self, payload)
            .await
    }
pub async fn upgrade_to_self_binary ( & mut self , payload : Vec < u8 > ) -> Result < ( ) , String > { self . take_wasm ( ) ? . install ( self . runtime ) . with_mode ( CanisterInstallMode :: Upgrade ) . install ( self , payload ) . await }
Runs the upgrade process, but with the new binary being identical to the
previous one.
Runs the upgrade process but with the new binary being identical to the previous one .
&mut self
payload
Vec<u8>