junobuild_shared::mgmt::ic

Function stop_segment

Source
pub async fn stop_segment(canister_id: CanisterId) -> Result<(), String>
Expand description

Stops the execution of a specified segment (canister).

§Arguments

  • canister_id: The CanisterId of the canister to stop.

§Returns

  • Ok(()): If the canister is successfully stopped.
  • Err(String): On failure, returns an error message.