Module ic_utils::call

source ·
Expand description

Utilities to encapsulate calls to a canister.

Structs

  • An AsyncCall that applies a transform function to the result of the call. Because of constraints on the type system in Rust, both the input and output to the function must be deserializable.
  • An async caller, encapsulating a call to an update method.
  • A structure that applies a transform function to the result of a call. Because of constraints on the type system in Rust, both the input and output to the function must be deserializable.
  • A synchronous call encapsulation.

Enums

  • An expiry value. Either not specified (the default), a delay relative to the time the call is made, or a specific date time.

Traits

  • A type that implements asynchronous calls (ie. ‘update’ calls). This can call synchronous and return a [RequestId], or it can wait for the result by polling the agent, and return a type.
  • A type that implements synchronous calls (ie. ‘query’ calls).