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.
- A
RouteProviderfor dynamic generation of routing urls. - Types representing signed 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.
- API boundary node, which routes /api calls to IC replica nodes.
- The authentication envelope, containing the contents and their signature. This struct can be passed to
Agent’s*_signedmethods viato_bytes. - A Factory for nonce blobs.
- A query request builder.
- An IC execution error received from the replica.
- A successful reply to a canister call.
- An update request Builder.
- An in-flight canister update call. Useful primarily as a
Future.
Enums§
- The response from a request to the
callendpoint. - The content of an IC ingress message, not including any signature information.
- See the interface spec.
- The response of
/api/v2/canister/<effective_canister_id>/read_statewithrequest_statusrequest type.
Traits§
- HTTP client middleware. Implemented automatically for
reqwest-compatible by-reftower::Service, such asreqwest_middleware. - An interface for generating nonces.
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