Skip to main content

Crate traceable_error

Crate traceable_error 

Source
Expand description

Deterministic Error Tracing Architecture (traceable_error)

This crate provides the foundational traits and compile-time hashing mechanisms required to establish a deterministic, traceable error hierarchy across distributed systems and multi-layered software architectures (such as Fuchsia and ffx).

§Overview

When dealing with deeply nested software stacks or distributed IPC boundaries (e.g. FIDL, Overnet), errors often undergo type erasure or stringification. This crate establishes a mechanism where each distinct error variant across independent crates is assigned a stable string-based layer code in the format: {crate_name}::{enum_name}::{variant_name}.

By chaining these layer codes chronologically, diagnostic systems can reconstruct the exact trajectory of a failure without relying on brittle string parsing or runtime type metadata.

Structs§

TraceableBox
A concrete, sized encapsulation of a dynamic TraceableError trait object.

Traits§

TraceableError
Defines an error that can be deterministically traced through a distributed architecture.