Expand description
Core types shared across the Canton Rust SDK.
The foundation the client crates build on: the Error type with its
retriable classification and the Result alias, the telemetry layer
(tracing spans + metrics), and the shared connection kernel — Config,
Auth/TokenSource, TlsConfig, and the retry pipeline — that
both canton-ledger and canton-admin build their gRPC channels from.
Re-exports§
pub use config::Auth;pub use config::Config;pub use config::DEFAULT_MAX_DECODING_MESSAGE_SIZE;pub use config::TlsConfig;pub use config::TokenSource;pub use config::redact_url;pub use retry::RetryConfig;
Modules§
- auth
- Request authentication for gRPC channels.
- config
- Shared client connection configuration (the Option-B connection kernel).
- localnet
- Reading a local development network out of the environment.
- retry
- Opt-in retry with exponential backoff.
- telemetry
- Telemetry: tracing spans, metrics, and structured events for client calls.
Structs§
- Error
Info - Structured
google.rpc.ErrorInfodetails from a gRPC status: the machine- readablereason, itsdomain, and errormetadata.#[non_exhaustive]. - Resource
Info - A resource a failure is about, from a
google.rpc.ResourceInfodetail on a gRPC status or an entry of a JSON API error body’sresources.#[non_exhaustive].
Enums§
- Error
- The single error type for the whole Canton Rust SDK.
- Error
Category - Canton’s error categories — the coarse classification every Ledger API
error carries (
ErrorInfo.metadata["category"]), which the error-code documentation defines retryability on.#[non_exhaustive]: Canton may add categories.
Type Aliases§
- Result
- SDK-wide result alias. Re-exported by the facade as
canton::Result.