pub fn call<T: ArgumentEncoder, R: for<'a> ArgumentDecoder<'a>>(
id: Principal,
method: &str,
args: T
) -> impl Future<Output = CallResult<R>> + Send + Sync
Expand description
Performs an asynchronous call to another canister using the System API.
If the reply payload is not a valid encoding of the expected type T
,
the call results in RejectionCode::CanisterError error.
Note that the asynchronous call must be awaited in order for the inter-canister call to be made using the System API.