Skip to main content

Crate canton_core

Crate canton_core 

Source
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::TlsConfig;
pub use config::TokenSource;
pub use retry::RetryConfig;

Modules§

auth
Request authentication for gRPC channels.
config
Shared client connection configuration (the Option-B connection kernel).
retry
Opt-in retry with exponential backoff.
telemetry
Telemetry: tracing spans, metrics, and structured events for client calls.

Structs§

ErrorInfo
Structured google.rpc.ErrorInfo details from a gRPC status: the machine- readable reason, its domain, and error metadata. #[non_exhaustive].

Enums§

Error
The single error type for the whole Canton Rust SDK.
ErrorCategory
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.