Module call

Source
👎Deprecated since 0.18.0: The api::call module is deprecated. Individual items within this module have their own deprecation notices with specific migration guidance.
Expand description

APIs to make and manage calls in the canister.

Structs§

ArgDecoderConfigDeprecated
Config to control the behavior of decoding canister entry point arguments.
CallReplyWriterDeprecated
An io::Write for message replies.
ManualReplyDeprecated
Pretends to have the Candid type T, but unconditionally errors when serialized.

Enums§

RejectionCodeDeprecated
Rejection code from calling another canister.

Functions§

accept_messageDeprecated
Accepts the ingress message.
arg_dataDeprecated
Returns the argument data in the current call. Traps if the data cannot be decoded.
arg_data_rawDeprecated
Returns the argument data as bytes.
arg_data_raw_sizeDeprecated
Gets the len of the raw-argument-data-bytes.
callDeprecated
Performs an asynchronous call to another canister.
call_rawDeprecated
Performs an asynchronous call to another canister and pay cycles at the same time.
call_raw128Deprecated
Performs an asynchronous call to another canister and pay cycles (in u128) at the same time.
call_with_configDeprecated
Performs an asynchronous call to another canister and pay cycles (in u128). It also allows setting a quota for decoding the return values. The decoding quota is strongly recommended when calling third-party or untrusted canisters.
call_with_paymentDeprecated
Performs an asynchronous call to another canister and pay cycles at the same time.
call_with_payment128Deprecated
Performs an asynchronous call to another canister and pay cycles (in u128) at the same time.
is_recovering_from_trapDeprecated
Tells you whether the current async fn is being canceled due to a trap/panic.
method_nameDeprecated
Returns the name of current canister method.
msg_cycles_acceptDeprecated
Moves cycles from the call to the canister balance.
msg_cycles_accept128Deprecated
Moves cycles from the call to the canister balance.
msg_cycles_availableDeprecated
Returns the amount of cycles that were transferred by the caller of the current call, and is still available in this message.
msg_cycles_available128Deprecated
Returns the amount of cycles that were transferred by the caller of the current call, and is still available in this message.
msg_cycles_refundedDeprecated
Returns the amount of cycles that came back with the response as a refund.
msg_cycles_refunded128Deprecated
Returns the amount of cycles that came back with the response as a refund.
notifyDeprecated
Like notify_with_payment128, but sets the payment to zero.
notify_rawDeprecated
Like notify, but sends the argument as raw bytes, skipping Candid serialization.
notify_with_payment128Deprecated
Sends a one-way message with payment cycles attached to it that invokes method with arguments args on the principal identified by id, ignoring the reply.
performance_counterDeprecated
Gets the value of specified performance counter
rejectDeprecated
Rejects the current call with the message.
reject_codeDeprecated
Returns the rejection code for the call.
reject_messageDeprecated
Returns the rejection message.
replyDeprecated
Replies to the current call with a candid argument.
reply_rawDeprecated
Replies with the bytes passed
resultDeprecated
Returns a result that maps over the call

Type Aliases§

CallResultDeprecated
The result of a Call.