Enum lib::errors::ErrorKind [−][src]
pub enum ErrorKind {
Show 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,
// 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.
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).
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.
There was an unauthorised access attempt.
One or more required builder fields weren’t set up.
The creation of an HTTP response for Lambda or its derivatives failed.
There was an attempt to create a subscriptions server without declaring its existence or configuration in the [Options].
Implementations
A string describing the error kind.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ErrorKindimpl !UnwindSafe for ErrorKindBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> VAttaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more