Module ic_cdk::api::call [−][src]
Expand description
APIs to make and manage calls in the canister.
Structs
CallReplyWriter | An io::Writer for message replies. |
Enums
RejectionCode | Rejection code from calling another canister.
These can be obtained either using |
Functions
arg_data | Get the argument data in the current call. |
call | Perform an asynchronous call to another canister via ic0. |
call_raw | Same as ‘call’, but without serialization. |
call_with_payment | |
msg_cycles_accept | |
msg_cycles_available | |
msg_cycles_refunded | |
reject | Reject the current call with the message. |
reject_code | Get the rejection code for the call. |
reject_message | Returns the rejection message. |
reply | Reply to the current call with a candid argument. |
result | 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
CallResult | The result of a Call. Errors on the IC have two components; a Code and a message associated with it. |