Expand description
Maintained PocketIC 16.1 client implementation; see ../upstream/NOTICE.md.
Modules§
- common
- Types that are shared between the PocketIC server and the PocketIC library. This module is a dependency of the server in the IC repository.
- nonblocking
- snapshot
- Bounded native snapshot copying. Callers own funding, custody and recovery.
Structs§
- Canister
LogRecord - Canister Log Record
- Canister
Settings - Canister Settings
- Canister
Status Result - Canister Status Result
- Create
Canister Params - Parameters for
PocketIc::create_canister_with_params. - Environment
Variable - Environment Variable.
- Error
Code Iter - An iterator over the variants of ErrorCode
- Operation
- A computation accepted by the PocketIC server.
- Pocket
Ic - Main entry point for interacting with PocketIC.
- Pocket
IcBuilder - Pocket
IcState - Reject
Code Iter - An iterator over the variants of RejectCode
- Reject
Response - User-facing type describing an unsuccessful (also called reject) call response.
- Request
Context - Evidence about a failed HTTP exchange, not permission to retry it.
- Snapshot
- Snapshot.
- Start
Server Params - Subnet
Blockmakers - Subnet
Metrics - A list of subnet metrics.
- Tick
Configs - Time
- Representation of system time as duration since UNIX epoch with cross-platform nanosecond precision.
Enums§
- Canister
Install Mode - Canister Install Mode
- Client
Error - Failures from the maintained client. Sources are preserved without string matching.
- Create
Canister Placement - Specifies where to place a newly created canister.
- Error
Code - User-facing error codes.
- Ingress
Status Result - This enum describes the result of retrieving ingress status.
The
IngressStatusResult::Forbiddenvariant is produced if an optional caller is provided and a corresponding read state request for the status of the same update call signed by that specified caller was rejected because the update call was submitted by a different caller. - Reject
Code - User-facing reject codes.
- TryFrom
Error - Error type for
TryFrom<u64>.
Constants§
- LATEST_
SERVER_ VERSION - Public to facilitate downloading the PocketIC server.
Functions§
- call_
candid - Call a canister candid method, anonymous. PocketIC executes update calls synchronously, so there is no need to poll for the result.
- call_
candid_ as - Call a canister candid method, authenticated. The sender can be impersonated (i.e., the signature is not verified). PocketIC executes update calls synchronously, so there is no need to poll for the result.
- copy_
dir - get_
default_ effective_ canister_ id - Retrieves a default effective canister id for canister creation on a PocketIC instance characterized by:
- query_
candid - Call a canister candid query method, anonymous.
- query_
candid_ as - Call a canister candid query method, authenticated. The sender can be impersonated (i.e., the signature is not verified).
- start_
server - Attempt to start a new PocketIC server.
- update_
candid - Call a canister candid update method, anonymous.
- update_
candid_ as - Call a canister candid update method, authenticated. The sender can be impersonated (i.e., the signature is not verified).
- with_
candid - A helper function that we use to implement both
call_candidandquery_candid.
Type Aliases§
- Canister
Id - Canister ID.