Trait redgold_schema::ErrorInfoContext
source · pub trait ErrorInfoContext<T, E> {
// Required methods
fn error_info<C>(self, context: C) -> Result<T, ErrorInfo>
where C: Display + Send + Sync + 'static + Into<String>;
fn error_msg<C>(self, code: Error, context: C) -> Result<T, ErrorInfo>
where C: Display + Send + Sync + 'static + Into<String>;
}Required Methods§
sourcefn error_info<C>(self, context: C) -> Result<T, ErrorInfo>where
C: Display + Send + Sync + 'static + Into<String>,
fn error_info<C>(self, context: C) -> Result<T, ErrorInfo>where C: Display + Send + Sync + 'static + Into<String>,
Wrap the error value with additional context.
fn error_msg<C>(self, code: Error, context: C) -> Result<T, ErrorInfo>where C: Display + Send + Sync + 'static + Into<String>,
Object Safety§
This trait is not object safe.