[−][src]Trait juniper::IntoFieldResult
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
Loading content...Required methods
fn into_result(self) -> Result<T, FieldError<S>>
[src]
Turns current [Stream
] type into a generic Result
.
Implementations on Foreign Types
impl<T, E, S> IntoFieldResult<T, S> for Result<T, E> where
T: IntoFieldResult<T, S>,
E: IntoFieldError<S>,
[src]
T: IntoFieldResult<T, S>,
E: IntoFieldError<S>,
type Item = T::Item
fn into_result(self) -> Result<T, FieldError<S>>
[src]
Implementors
impl<T, S> IntoFieldResult<T, S> for T where
T: Stream,
[src]
T: Stream,