Module ic_agent::agent[][src]

Expand description

The main Agent module. Contains the Agent type and all associated structures.

Re-exports

pub use agent_error::AgentError;

Modules

agent_error
http_transport

A [ReplicaV2Transport] that connects using a reqwest client.

status

Structs

Agent

A low level Agent to make calls to a Replica endpoint.

AgentBuilder
AgentConfig

A configuration for an agent.

NonceFactory

A Factory for nonce blobs.

QueryBuilder

A Query Request Builder.

UpdateBuilder

An Update Request Builder.

UpdateCall

Enums

PollResult

Classification of the result of a request_status_raw (poll) call.

Replied
RequestStatusResponse

The response of /api/v2/canister/<effective_canister_id>/read_state with “request_status” request type.

Traits

ReplicaV2Transport

A facade that connects to a Replica and does requests. These requests can be of any type (does not have to be HTTP). This trait is to inverse the control from the Agent over its connection code, and to resolve any direct dependencies to tokio or HTTP code from this crate.