Trait juniper::IntoFieldResult[][src]

pub trait IntoFieldResult<T, S> {
    type Item;
    fn into_result(self) -> Result<T, FieldError<S>>;
}
Expand description

Trait for wrapping [Stream] into Ok if it’s not Result.

Used in subscription macros when user can provide type alias for [Stream] or Result<Stream, _> and then a function on [Stream] should be called.

Associated Types

Type of items yielded by this [Stream].

Required methods

Turns current [Stream] type into a generic Result.

Implementations on Foreign Types

Implementors