Skip to main content

ResultExt

Trait ResultExt 

Source
pub trait ResultExt {
    // Required method
    fn context(self, message: impl Into<Cow<'static, str>>) -> Self;
}
Expand description

OperationOutcomeError::context on a Result, applied only on the error path.

Required Methods§

Source

fn context(self, message: impl Into<Cow<'static, str>>) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T> ResultExt for Result<T, OperationOutcomeError>

Source§

fn context(self, message: impl Into<Cow<'static, str>>) -> Self

Implementors§