fn reject_request(
        &self,
        mut canister: CanisterState,
        num_instructions_left: NumInstructions,
        req: Request,
        reject_context: RejectContext,
        heap_delta: NumBytes,
    ) -> ExecuteMessageResult<CanisterState> {
        canister.push_output_response(Response {
            originator: req.sender,
            respondent: canister.canister_id(),
            originator_reply_callback: req.sender_reply_callback,
            refund: req.payment,
            response_payload: Payload::Reject(reject_context),
        });

        ExecuteMessageResult {
            canister,
            num_instructions_left,
            ingress_status: None,
            heap_delta,
        }
    }
// Helper function to produce a reject `Response` for a given `Request`.
Helper function to produce a reject `Response` for a given `Request`.
Helper function to produce a reject ` Response ` for a given ` Request ` .
fn reject_request(
        &self,
        mut canister: CanisterState,
        num_instructions_left: NumInstructions,
        req: Request,
        reject_context: RejectContext,
        heap_delta: NumBytes,
    ) -> ExecuteMessageResult<CanisterState> {
        canister.push_output_response(Response {
            originator: req.sender,
            respondent: canister.canister_id(),
            originator_reply_callback: req.sender_reply_callback,
            refund: req.payment,
            response_payload: Payload::Reject(reject_context),
        });
        ExecuteMessageResult {
            canister,
            num_instructions_left,
            ingress_status: None,
            heap_delta,
        }
    }
fn reject_request ( & self , mut canister : CanisterState , num_instructions_left : NumInstructions , req : Request , reject_context : RejectContext , heap_delta : NumBytes , ) -> ExecuteMessageResult < CanisterState > { canister . push_output_response ( Response { originator : req . sender , respondent : canister . canister_id ( ) , originator_reply_callback : req . sender_reply_callback , refund : req . payment , response_payload : Payload :: Reject ( reject_context ) , } ) ; ExecuteMessageResult { canister , num_instructions_left , ingress_status : None , heap_delta , } }
Helper function to produce a reject `Response` for a given `Request`.
Helper function to produce a reject ` Response ` for a given ` Request ` .
&self
canister
CanisterState
num_instructions_left
NumInstructions
req
Request
reject_context
RejectContext
heap_delta
NumBytes
&self
canister
CanisterState
num_instructions_left
NumInstructions
req
Request
reject_context
RejectContext
heap_delta
NumBytes