Trait async_graphql::ResultExt
source · pub trait ResultExt<T, E>: Sized {
// Required methods
fn extend_err<C>(self, cb: C) -> Result<T>
where C: FnOnce(&E, &mut ErrorExtensionValues);
fn extend(self) -> Result<T>;
}
Expand description
Extend a Result
’s error value with
ErrorExtensions
.
Required Methods§
sourcefn extend_err<C>(self, cb: C) -> Result<T>where
C: FnOnce(&E, &mut ErrorExtensionValues),
fn extend_err<C>(self, cb: C) -> Result<T>where C: FnOnce(&E, &mut ErrorExtensionValues),
Extend the error value of the result with the callback.
Object Safety§
This trait is not object safe.