👎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§
- ArgDecoder
Config Deprecated - Config to control the behavior of decoding canister entry point arguments.
- Call
Reply Writer Deprecated - An io::Write for message replies.
- Manual
Reply Deprecated - Pretends to have the Candid type
T
, but unconditionally errors when serialized.
Enums§
- Rejection
Code Deprecated - Rejection code from calling another canister.
Functions§
- accept_
message Deprecated - Accepts the ingress message.
- arg_
data Deprecated - Returns the argument data in the current call. Traps if the data cannot be decoded.
- arg_
data_ raw Deprecated - Returns the argument data as bytes.
- arg_
data_ raw_ size Deprecated - Gets the len of the raw-argument-data-bytes.
- call
Deprecated - Performs an asynchronous call to another canister.
- call_
raw Deprecated - Performs an asynchronous call to another canister and pay cycles at the same time.
- call_
raw128 Deprecated - Performs an asynchronous call to another canister and pay cycles (in
u128
) at the same time. - call_
with_ config Deprecated - 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_ payment Deprecated - Performs an asynchronous call to another canister and pay cycles at the same time.
- call_
with_ payment128 Deprecated - Performs an asynchronous call to another canister and pay cycles (in
u128
) at the same time. - is_
recovering_ from_ trap Deprecated - Tells you whether the current async fn is being canceled due to a trap/panic.
- method_
name Deprecated - Returns the name of current canister method.
- msg_
cycles_ accept Deprecated - Moves cycles from the call to the canister balance.
- msg_
cycles_ accept128 Deprecated - Moves cycles from the call to the canister balance.
- msg_
cycles_ available Deprecated - Returns the amount of cycles that were transferred by the caller of the current call, and is still available in this message.
- msg_
cycles_ available128 Deprecated - Returns the amount of cycles that were transferred by the caller of the current call, and is still available in this message.
- msg_
cycles_ refunded Deprecated - Returns the amount of cycles that came back with the response as a refund.
- msg_
cycles_ refunded128 Deprecated - Returns the amount of cycles that came back with the response as a refund.
- notify
Deprecated - Like notify_with_payment128, but sets the payment to zero.
- notify_
raw Deprecated - Like notify, but sends the argument as raw bytes, skipping Candid serialization.
- notify_
with_ payment128 Deprecated - Sends a one-way message with
payment
cycles attached to it that invokesmethod
with argumentsargs
on the principal identified byid
, ignoring the reply. - performance_
counter Deprecated - Gets the value of specified performance counter
- reject
Deprecated - Rejects the current call with the message.
- reject_
code Deprecated - Returns the rejection code for the call.
- reject_
message Deprecated - Returns the rejection message.
- reply
Deprecated - Replies to the current call with a candid argument.
- reply_
raw Deprecated - Replies with the bytes passed
- result
Deprecated - Returns a result that maps over the call
Type Aliases§
- Call
Result Deprecated - The result of a Call.