Skip to main content

IntoError

Trait IntoError 

Source
pub trait IntoError {
    // Required method
    fn into_error(self) -> Error;
}
Expand description

A trait for types that can be converted into Error, a GraphQL HTTP Response error.

Required Methods§

Source

fn into_error(self) -> Error

Convert the type into Error.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl IntoError for Error

Source§

impl<T> IntoError for T
where T: Error,