pub enum ErrorKind {
Request,
Execution,
}Expand description
Whether an error happened before execution or during it.
A request error is produced while interpreting the request: malformed variables, a parse error, a validation error, variable coercion, an unknown persisted identifier and similar failures. An execution error is produced by a valid operation: a resolver, an authorization plugin, a subscription event or a timeout.
Variants§
Request
The error was produced before any field resolver ran.
Execution
The error was produced while executing a valid operation.
Implementations§
Source§impl ErrorKind
impl ErrorKind
Sourcepub const fn is_request(self) -> bool
pub const fn is_request(self) -> bool
Whether this is a request error.
Sourcepub const fn is_execution(self) -> bool
pub const fn is_execution(self) -> bool
Whether this is an execution error.
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Forget for ErrorKind
impl Freeze for ErrorKind
impl Move for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.