Enum diana::errors::ErrorKind[][src]

pub enum ErrorKind {
Show variants Io(Error), EnvVar(VarError), Reqwest(Error), Json(Error), JsonWebToken(Error), Msg(String), InvalidEnvVarType(StringString), GraphQLContextNotFound(String), MutexPoisoned(String), SubscriptionDataPublishFailed, InvalidDatetimeIntervalIndicator(String), Unauthorised, IncompleteBuilderFields, HttpResponseBuilderFailed, InvokedSubscriptionsServerWithInvalidOptions, AttemptedPlaygroundInProduction, IntegrationError(StringString), // some variants omitted
}
Expand description

The kind of an error.

Variants

Io(Error)
EnvVar(VarError)
Reqwest(Error)
Json(Error)
JsonWebToken(Error)
Msg(String)

A convenient variant for String.

InvalidEnvVarType(StringString)

An environment variable had an invalid type. E.g. a port was given as a hex string for some reason.

GraphQLContextNotFound(String)

A required part of the GraphQL context was not found.

MutexPoisoned(String)

A Mutex was poisoned (if .lock() failed).

SubscriptionDataPublishFailed

The subscriptions server failed to publish data it was asked to. This error is usually caused by an authentication failure.

InvalidDatetimeIntervalIndicator(String)

An invalid indicator string was used when trying to convert a timestring into a datetime.

Unauthorised

There was an unauthorised access attempt.

IncompleteBuilderFields

One or more required builder fields weren’t set up.

HttpResponseBuilderFailed

The creation of an HTTP response for Lambda or its derivatives failed.

InvokedSubscriptionsServerWithInvalidOptions

There was an attempt to create a subscriptions server without declaring its existence or configuration in the [Options].

AttemptedPlaygroundInProduction

There was an attempt to initialize the GraphiQL playground in a production environment.

IntegrationError(StringString)

There was an error in one of the integrations.

Implementations

A string describing the error kind.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.