pub async fn apply_system_update(
    current_system_image: Hash,
    latest_system_image: Hash,
    initiator: Initiator,
) -> Result<(), Error> {
    let launcher = connect_to_service::<LauncherMarker>().context(ErrorKind::ConnectToLauncher)?;
    let mut component_runner = RealComponentRunner { launcher_proxy: launcher };
    apply_system_update_impl(
        current_system_image,
        latest_system_image,
        &RealServiceConnector,
        &mut component_runner,
        initiator,
        &RealTimeSource,
        &RealFileSystem,
    )
    .await
}
// On success, system will reboot before this function returns
On success, system will reboot before this function returns
On success system will reboot before this function returns
pub async fn apply_system_update(
    current_system_image: Hash,
    latest_system_image: Hash,
    initiator: Initiator,
) -> Result<(), Error> {
    let launcher = connect_to_service::<LauncherMarker>().context(ErrorKind::ConnectToLauncher)?;
    let mut component_runner = RealComponentRunner { launcher_proxy: launcher };
    apply_system_update_impl(
        current_system_image,
        latest_system_image,
        &RealServiceConnector,
        &mut component_runner,
        initiator,
        &RealTimeSource,
        &RealFileSystem,
    )
    .await
}
pub async fn apply_system_update ( current_system_image : Hash , latest_system_image : Hash , initiator : Initiator , ) -> Result < ( ) , Error > { let launcher = connect_to_service :: < LauncherMarker > ( ) . context ( ErrorKind :: ConnectToLauncher ) ? ; let mut component_runner = RealComponentRunner { launcher_proxy : launcher } ; apply_system_update_impl ( current_system_image , latest_system_image , & RealServiceConnector , & mut component_runner , initiator , & RealTimeSource , & RealFileSystem , ) . await }
On success, system will reboot before this function returns
On success system will reboot before this function returns
current_system_image
Hash
latest_system_image
Hash
initiator
Initiator