[][src]Trait async_graphql::ResultExt

pub trait ResultExt<T, E>: Sized {
    fn extend_err<C>(self, cb: C) -> FieldResult<T>
    where
        C: FnOnce(&E) -> Value
;
fn extend(self) -> FieldResult<T>; }

Extend a Result's error value with ErrorExtensions.

Required methods

fn extend_err<C>(self, cb: C) -> FieldResult<T> where
    C: FnOnce(&E) -> Value

Extend the error value of the result with the callback.

fn extend(self) -> FieldResult<T>

Extend the result to a FieldResult.

Loading content...

Implementations on Foreign Types

impl<T, E> ResultExt<T, E> for Result<T, E> where
    E: ErrorExtensions + Send + Sync + 'static, 
[src]

Loading content...

Implementors

Loading content...