Struct ic_utils::canister::AsyncCallBuilder [−][src]
pub struct AsyncCallBuilder<'agent, 'canister: 'agent, T> { /* fields omitted */ }
Expand description
A builder for an asynchronous call (ie. update) to the Internet Computer.
See AsyncCaller for a description of this structure.
Implementations
pub fn with_arg<Argument>(
self,
arg: Argument
) -> AsyncCallBuilder<'agent, 'canister, Interface> where
Argument: CandidType + Sync + Send,
pub fn with_arg<Argument>(
self,
arg: Argument
) -> AsyncCallBuilder<'agent, 'canister, Interface> where
Argument: CandidType + Sync + Send,
Add an argument to the candid argument list. This requires Candid arguments, if there is a raw argument set (using [with_arg_raw]), this will fail.
Replace the argument with raw argument bytes. This will overwrite the current argument set, so calling this method twice will discard the first argument.
pub fn with_effective_canister_id(
self,
canister_id: Principal
) -> AsyncCallBuilder<'agent, 'canister, Interface>
pub fn build<Output>(self) -> AsyncCaller<'canister, Output> where
Output: for<'de> ArgumentDecoder<'de> + Send + Sync,
pub fn build<Output>(self) -> AsyncCaller<'canister, Output> where
Output: for<'de> ArgumentDecoder<'de> + Send + Sync,
Builds an AsyncCaller from this builder’s state.