pub trait ErrorCode:
Clone
+ Debug
+ Serialize
+ JsonSchema
+ Send
+ Sync
+ 'static { }Available on crate feature
terminal only.Expand description
A binary’s vocabulary of stable failure codes.
Implemented for every type with the needed bounds. The vocabulary
belongs to the binary, but its values are kebab-case across the
family, so a code enum derives Serialize with
#[serde(rename_all = "kebab-case")].
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".