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

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

The kind of an error.

Variants

Io

Tuple Fields of Io

0: Error
EnvVar

Tuple Fields of EnvVar

0: VarError
Reqwest

Tuple Fields of Reqwest

0: Error
Json

Tuple Fields of Json

0: Error
JsonWebToken

Tuple Fields of JsonWebToken

0: Error
Msg

A convenient variant for String.

Tuple Fields of Msg

0: String
InvalidEnvVarType

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

Tuple Fields of InvalidEnvVarType

0: String1: String
GraphQLContextNotFound

A required part of the GraphQL context was not found.

Tuple Fields of GraphQLContextNotFound

0: String
MutexPoisoned

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

Tuple Fields of MutexPoisoned

0: String
SubscriptionDataPublishFailed

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

InvalidDatetimeIntervalIndicator

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

Tuple Fields of InvalidDatetimeIntervalIndicator

0: String
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

There was an error in one of the integrations.

Tuple Fields of IntegrationError

0: String1: String

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.