Skip to main content

ErrorPathExt

Trait ErrorPathExt 

Source
pub trait ErrorPathExt {
    // Provided method
    fn error_path(&self) -> Option<ErrorPath> { ... }
}
Expand description

Read a structured operational address from an error.

Implement this trait for an application error type that stores an ErrorPath. Optional adapters implement it to expose only segments added by WithErrorPath; they never infer a path or error code from a message. The default implementation returns None when no structured address exists.

Provided Methods§

Source

fn error_path(&self) -> Option<ErrorPath>

Return this error’s structured operational address, when available.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§