Skip to main content

WithErrorPath

Trait WithErrorPath 

Source
pub trait WithErrorPath: Sized {
    // Required method
    fn with_error_path(self, path: &'static str) -> Self;
}
Expand description

Compatibility trait used by the generated macro code.

Implement this trait for any error type that wants to work with #[error_path] or #[error_path_impl].

Required Methods§

Source

fn with_error_path(self, path: &'static str) -> Self

Return the same error value enriched with path.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§