1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// SPDX-License-Identifier: Apache-2.0
//! Shared metadata for native backend diagnostics.
/// Stable presentation metadata for one native backend failure.
///
/// The metadata is deliberately smaller than the backend's error enum. The
/// native backend remains the owner of the typed error and its platform
/// details; this value gives adapters a stable code and, when applicable, the
/// portable configuration field that caused the failure.
/// Supplies stable presentation metadata for a concrete backend error.
///
/// Implement this for the backend's public top-level error and for nested
/// error types when callers may receive them directly. The implementation is
/// responsible for preserving the backend-specific typed error; this trait is
/// only an adapter-facing classification layer.