UM7DFUYLW4HSMBUDZY3R6ZNJRSX2E75C4DYV3MJAU57EUCGE6JLAC
fn context<C: Display + Send + Sync + 'static>(self, context: C) -> Result<T, Exception> {
self.map_err(|error| Exception::from(ContextError { error, context }))
fn context<C: Display + Send + Sync + 'static>(self, context: C) -> Result<T, Error> {
self.map_err(|error| Error::from(ContextError { error, context }))
impl<T> Context<T, Exception> for Result<T, Exception> {
fn context<C: Display + Send + Sync + 'static>(self, context: C) -> Result<T, Exception> {
self.map_err(|error| Exception::from(ContextError { error, context }))
impl<T> Context<T, Error> for Result<T, Error> {
fn context<C: Display + Send + Sync + 'static>(self, context: C) -> Result<T, Error> {
self.map_err(|error| Error::from(ContextError { error, context }))
/// - `Exception` requires that the error is `Send`, `Sync`, and `'static`
/// - `Exception` guarantees that a backtrace will exist, even if the error type
/// - `Error` requires that the error is `Send`, `Sync`, and `'static`
/// - `Error` guarantees that a backtrace will exist, even if the error type
impl<E: StdError + Send + Sync + 'static> From<E> for Exception {
fn from(error: E) -> Exception {
Exception::new(error)
impl<E: StdError + Send + Sync + 'static> From<E> for Error {
fn from(error: E) -> Error {
Error::new(error)