fn system_execution_result(
        &self,
        output: WasmExecutionOutput,
        execution_state: ExecutionState,
        old_system_state: SystemState,
        scheduler_state: SchedulerState,
        output_system_state: SystemState,
    ) -> (CanisterState, NumInstructions, HypervisorResult<NumBytes>) {
        let (system_state, heap_delta) = match output.wasm_result {
            Ok(opt_result) => {
                if opt_result.is_some() {
                    fatal!(self.log, "[EXC-BUG] System methods cannot use msg_reply.");
                }
                let bytes = NumBytes::from((output.instance_stats.dirty_pages * PAGE_SIZE) as u64);
                (output_system_state, Ok(bytes))
            }
            Err(err) => (old_system_state, Err(err)),
        };
        let canister =
            CanisterState::from_parts(Some(execution_state), system_state, scheduler_state);
        (canister, output.num_instructions_left, heap_delta)
    }
// A helper that converts a Wasm execution output to an execution
// result of `execution_canister_*` functions.
//
// The components of the resulting `CanisterState` are computed
// as follows:
// - `execution_state` is taken from the Wasm output.
// - `scheduler_state` is taken from the corresponding argument.
// - `system_state` is taken from the system_state_accessor if the execution
//   succeeded; otherwise, it is taken from the corresponding argument.
A helper that converts a Wasm execution output to an execution
result of `execution_canister_*` functions.

The components of the resulting `CanisterState` are computed
as follows:
`execution_state` is taken from the Wasm output.
`scheduler_state` is taken from the corresponding argument.
`system_state` is taken from the system_state_accessor if the execution
succeeded; otherwise, it is taken from the corresponding argument.
A helper that converts a Wasm execution output to an execution result of ` execution_canister_ * ` functions . The components of the resulting ` CanisterState ` are computed as follows : ` execution_state ` is taken from the Wasm output . ` scheduler_state ` is taken from the corresponding argument . ` system_state ` is taken from the system_state_accessor if the execution succeeded ; otherwise it is taken from the corresponding argument .
fn system_execution_result(
        &self,
        output: WasmExecutionOutput,
        execution_state: ExecutionState,
        old_system_state: SystemState,
        scheduler_state: SchedulerState,
        output_system_state: SystemState,
    ) -> (CanisterState, NumInstructions, HypervisorResult<NumBytes>) {
        let (system_state, heap_delta) = match output.wasm_result {
            Ok(opt_result) => {
                if opt_result.is_some() {
                    fatal!(self.log, "[EXC-BUG] System methods cannot use msg_reply.");
                }
                let bytes = NumBytes::from((output.instance_stats.dirty_pages * PAGE_SIZE) as u64);
                (output_system_state, Ok(bytes))
            }
            Err(err) => (old_system_state, Err(err)),
        };
        let canister =
            CanisterState::from_parts(Some(execution_state), system_state, scheduler_state);
        (canister, output.num_instructions_left, heap_delta)
    }
fn system_execution_result ( & self , output : WasmExecutionOutput , execution_state : ExecutionState , old_system_state : SystemState , scheduler_state : SchedulerState , output_system_state : SystemState , ) -> ( CanisterState , NumInstructions , HypervisorResult < NumBytes > ) { let ( system_state , heap_delta ) = match output . wasm_result { Ok ( opt_result ) => { if opt_result . is_some ( ) { fatal ! ( self log " " ) ; } let bytes = NumBytes :: from ( ( output . instance_stats . dirty_pages * PAGE_SIZE ) as u64 ) ; ( output_system_state , Ok ( bytes ) ) } Err ( err ) => ( old_system_state , Err ( err ) ) , } ; let canister = CanisterState :: from_parts ( Some ( execution_state ) , system_state , scheduler_state ) ; ( canister , output . num_instructions_left , heap_delta ) }
A helper that converts a Wasm execution output to an execution
result of `execution_canister_*` functions.
A helper that converts a Wasm execution output to an execution result of ` execution_canister_ * ` functions .
&self
output
WasmExecutionOutput
execution_state
ExecutionState
old_system_state
SystemState
scheduler_state
SchedulerState
output_system_state
SystemState
&self
output
WasmExecutionOutput
execution_state
ExecutionState
old_system_state
SystemState
scheduler_state
SchedulerState
output_system_state
SystemState