pub trait IntoErrorContext {
// Required method
fn into_error_context(self) -> ErrorContext;
}Expand description
Converts a type into an ErrorContext for error annotation.
This trait is used throughout the error handling pipeline to accept flexible context types when building composable errors.
Required Methods§
Sourcefn into_error_context(self) -> ErrorContext
fn into_error_context(self) -> ErrorContext
Converts self into an ErrorContext.
Implementations on Foreign Types§
Source§impl IntoErrorContext for &'static str
impl IntoErrorContext for &'static str
Source§fn into_error_context(self) -> ErrorContext
fn into_error_context(self) -> ErrorContext
Converts a static string slice into a message context.