Expand description
The main Agent module. Contains the Agent type and all associated structures.
Re-exports§
pub use agent_error::AgentError;
Modules§
- agent_
error - Errors that can occur when using the replica agent.
- route_
provider - A
RouteProviderfor dynamic generation of routing urls. - signed
- Types representing signed messages.
- status
- Types for interacting with the status endpoint of a replica. See
Statusfor details.
Structs§
- Agent
- A low level Agent to make calls to a Replica endpoint.
- Agent
Builder - A builder for an
Agent. - Agent
Config - A configuration for an agent.
- ApiBoundary
Node - API boundary node, which routes /api calls to IC replica nodes.
- Envelope
- The authentication envelope, containing the contents and their signature. This struct can be passed to
Agent’s*_signedmethods viaencode_bytes. - Nonce
Factory - A Factory for nonce blobs.
- Query
Builder - A query request builder.
- Reject
Response - An IC execution error received from the replica.
- Reply
Response - A successful reply to a canister call.
- Update
Builder - An update request Builder.
- Update
Call - An in-flight canister update call. Useful primarily as a
Future.
Enums§
- Call
Response - The response from a request to the
callendpoint. - Envelope
Content - The content of an IC ingress message, not including any signature information.
- Reject
Code - See the interface spec.
- Request
Status Response - The response of
/api/v2/canister/<effective_canister_id>/read_statewithrequest_statusrequest type.
Traits§
- Http
Service - HTTP client middleware. Implemented automatically for
reqwest-compatible by-reftower::Service, such asreqwest_middleware. - Nonce
Generator - An interface for generating nonces.
Functions§
- signed_
query_ inspect - 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
- signed_
request_ status_ inspect - Inspect the bytes to be sent as a
request_statusReturn Ok only when the bytes can be deserialized as arequest_statusand all fields match with the arguments - signed_
update_ inspect - 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