pub trait DetailedError: Error {
// Required methods
fn error_code(&self) -> Cow<'static, str>;
fn error_system(&self) -> Option<Cow<'static, str>>;
fn error_request_id(&self) -> Option<Cow<'static, str>>;
}Expand description
Error trait for values that carry structured output-envelope metadata.
Required Methods§
Sourcefn error_code(&self) -> Cow<'static, str>
fn error_code(&self) -> Cow<'static, str>
Stable error code.
Sourcefn error_system(&self) -> Option<Cow<'static, str>>
fn error_system(&self) -> Option<Cow<'static, str>>
Optional backend/system id.
Sourcefn error_request_id(&self) -> Option<Cow<'static, str>>
fn error_request_id(&self) -> Option<Cow<'static, str>>
Optional backend request id.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".