Expand description
The main Agent module. Contains the Agent type and all associated structures.
Re-exports
pub use agent_error::AgentError;
Modules
- Errors that can occur when using the replica agent.
- super::ReplicaV2Transport implementations.
- Types representing signed ingress messages.
- Types for interacting with the status endpoint of a replica. See
Statusfor details.
Structs
- A low level Agent to make calls to a Replica endpoint.
- A builder for an
Agent. - A configuration for an agent.
- A Factory for nonce blobs.
- A Query Request Builder.
- An Update Request Builder.
- An in-flight canister update call. Useful primarily as a
Future.
Enums
- Classification of the result of a request_status_raw (poll) call.
- The response of /api/v2/canister/<effective_canister_id>/read_state with “request_status” request type.
Traits
- An interface for generating nonces.
- 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.
Functions
- Inspect the bytes to be sent as a query Return Ok only when the bytes can be deserialized as a query and all fields match with the arguments
- Inspect the bytes to be sent as a request_status Return Ok only when the bytes can be deserialized as a request_status and all fields match with the arguments
- Inspect the bytes to be sent as an update Return Ok only when the bytes can be deserialized as an update and all fields match with the arguments