pub struct SyncCallBuilder<'agent, 'canister: 'agent, T> { /* private fields */ }
Expand description

A builder for a synchronous call (ie. query) to the Internet Computer.

See SyncCaller for a description of this structure once built.

Implementations

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.

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. TODO: make this method unnecessary https://github.com/dfinity/agent-rs/issues/132

Replace the argument with raw argument bytes. This will overwrite the current argument set, so calling this method twice will discard the first argument.

Sets the effective canister ID of the destination.

Builds an SyncCaller from this builder’s state.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more