Expand description
APIs to make and manage calls in the canister.
Structs§
- Call
Reply Writer - An io::Write for message replies.
- Manual
Reply - Pretends to have the Candid type
T, but unconditionally errors when serialized.
Enums§
- Rejection
Code - Rejection code from calling another canister.
Functions§
- accept_
message - Accepts the ingress message.
- arg_
data - Returns the argument data in the current call. Traps if the data cannot be decoded.
- arg_
data_ raw - Returns the argument data as bytes.
- arg_
data_ raw_ size - Get the len of the raw-argument-data-bytes.
- call
- Performs an asynchronous call to another canister using the System API.
- call_
raw - Similar to
call, but without serialization. - call_
raw128 - Similar to
call128, but without serialization. - call_
with_ payment - Performs an asynchronous call to another canister and pay cycles at the same time.
- call_
with_ payment128 - Performs an asynchronous call to another canister and pay cycles at the same time.
- method_
name - Returns the name of current canister method.
- msg_
cycles_ accept - Moves cycles from the call to the canister balance.
- msg_
cycles_ accept128 - Moves cycles from the call to the canister balance.
- msg_
cycles_ available - 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 - 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 - Returns the amount of cycles that came back with the response as a refund.
- msg_
cycles_ refunded128 - Returns the amount of cycles that came back with the response as a refund.
- notify
- Like notify_with_payment128, but sets the payment to zero.
- notify_
raw - Like notify, but sends the argument as raw bytes, skipping Candid serialization.
- notify_
with_ payment128 - Sends a one-way message with
paymentcycles attached to it that invokesmethodwith argumentsargson the principal identified byid, ignoring the reply. - performance_
counter - Get the value of specified performance counter
- reject
- Rejects the current call with the message.
- reject_
code - Returns the rejection code for the call.
- reject_
message - Returns the rejection message.
- reply
- Replies to the current call with a candid argument.
- reply_
raw - Replies with the bytes passed
- result
- Returns a result that maps over the call
Type Aliases§
- Call
Result - The result of a Call.