/// Create a SystemState only having a canister_id -- this is the
/// state that is expected when the "start" method of the wasm
/// module is run. There is nothing interesting in the system state
/// that can be accessed at that point in time, hence this
/// "slightly" fake system state.
Create a SystemState only having a canister_id -- this is the
state that is expected when the "start" method of the wasm
module is run. There is nothing interesting in the system state
that can be accessed at that point in time, hence this
"slightly" fake system state.
Create a SystemState only having a canister_id -- this is the state that is expected when the " start " method of the wasm module is run . There is nothing interesting in the system state that can be accessed at that point in time hence this " slightly " fake system state .
pub fn new_for_start(canister_id: CanisterId) -> Self {
        let controller = *canister_id.get_ref();
        Self::new(
            canister_id,
            controller,
            Cycles::from(0),
            NumSeconds::from(0),
            CanisterStatus::Stopped,
        )
    }
pub fn new_for_start ( canister_id : CanisterId ) -> Self { let controller = * canister_id . get_ref ( ) ; Self :: new ( canister_id , controller , Cycles :: from ( 0 ) , NumSeconds :: from ( 0 ) , CanisterStatus :: Stopped , ) }
Create a SystemState only having a canister_id -- this is the
state that is expected when the "start" method of the wasm
module is run.
Create a SystemState only having a canister_id -- this is the state that is expected when the " start " method of the wasm module is run .
canister_id
CanisterId