fn reject_local_request(
        &self,
        state: &mut ReplicatedState,
        req: Request,
        reject_code: RejectCode,
        reject_message: String,
    ) {
        state
            .push_input(
                QUEUE_INDEX_NONE,
                Response {
                    originator: req.sender,
                    respondent: req.receiver,
                    originator_reply_callback: req.sender_reply_callback,
                    refund: req.payment,
                    response_payload: Payload::Reject(RejectContext {
                        code: reject_code,
                        message: reject_message,
                    }),
                }
                .into(),
                // Arbitrary large amounts, pushing a response always returns memory.
                NumBytes::new(i64::MAX as u64 / 2),
                &mut (i64::MAX / 2),
            )
            .unwrap();
    }
/// Enqueues a reject Response to a request from a local canister into the
/// canister's input queue.
Enqueues a reject Response to a request from a local canister into the
canister's input queue.
Enqueues a reject Response to a request from a local canister into the canister ' s input queue .
fn reject_local_request(
        &self,
        state: &mut ReplicatedState,
        req: Request,
        reject_code: RejectCode,
        reject_message: String,
    ) {
        state
            .push_input(
                QUEUE_INDEX_NONE,
                Response {
                    originator: req.sender,
                    respondent: req.receiver,
                    originator_reply_callback: req.sender_reply_callback,
                    refund: req.payment,
                    response_payload: Payload::Reject(RejectContext {
                        code: reject_code,
                        message: reject_message,
                    }),
                }
                .into(),
                // Arbitrary large amounts, pushing a response always returns memory.
                NumBytes::new(i64::MAX as u64 / 2),
                &mut (i64::MAX / 2),
            )
            .unwrap();
    }
fn reject_local_request ( & self , state : & mut ReplicatedState , req : Request , reject_code : RejectCode , reject_message : String , ) { state . push_input ( QUEUE_INDEX_NONE , Response { originator : req . sender , respondent : req . receiver , originator_reply_callback : req . sender_reply_callback , refund : req . payment , response_payload : Payload :: Reject ( RejectContext { code : reject_code , message : reject_message , } ) , } . into ( ) , // Arbitrary large amounts, pushing a response always returns memory. NumBytes :: new ( i64 :: MAX as u64 / 2 ) , & mut ( i64 :: MAX / 2 ) , ) . unwrap ( ) ; }
Enqueues a reject Response to a request from a local canister into the
canister's input queue.
Enqueues a reject Response to a request from a local canister into the canister ' s input queue .
&self
state
&mut ReplicatedState
req
Request
reject_code
RejectCode
reject_message
String
&self
state
&mut ReplicatedState
req
Request
reject_code
RejectCode
reject_message
String