Module ic_cdk::api::call[][src]

Expand description

APIs to make and manage calls in the canister.

Structs

An io::Writer for message replies.

Enums

Rejection code from calling another canister. These can be obtained either using reject_code() or reject_result().

Functions

Get the argument data in the current call.

Perform an asynchronous call to another canister via ic0.

Same as ‘call’, but without serialization.

Reject the current call with the message.

Get the rejection code for the call.

Returns the rejection message.

Reply to the current call with a candid argument.

Returns a result that maps over the call; it will be Ok(T) if the call succeeded (with T being the arg_data), and reject_message() if it failed.

Type Definitions

The result of a Call. Errors on the IC have two components; a Code and a message associated with it.