logo
#[non_exhaustive]
pub enum ErrorKind {
    Bind(Error),
    Io(Error),
    Config(Error),
    Collisions(Collisions),
    FailedFairings(Vec<Info>),
    SentinelAborts(Vec<Sentry>),
    InsecureSecretKey(Profile),
    Shutdown(Arc<Rocket<Orbit>>, Option<Box<dyn StdError + Send + Sync>>),
}
Expand description

The kind error that occurred.

In almost every instance, a launch error occurs because of an I/O error; this is represented by the Io variant. A launch error may also occur because of ill-defined routes that lead to collisions or because a fairing encountered an error; these are represented by the Collision and FailedFairing variants, respectively.

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

Bind(Error)

Binding to the provided address/port failed.

Io(Error)

An I/O error occurred during launch.

Config(Error)

A valid Config could not be extracted from the configured figment.

Collisions(Collisions)

Route collisions were detected.

FailedFairings(Vec<Info>)

Launch fairing(s) failed.

SentinelAborts(Vec<Sentry>)

Sentinels requested abort.

InsecureSecretKey(Profile)

The configuration profile is not debug but not secret key is configured.

Shutdown(Arc<Rocket<Orbit>>, Option<Box<dyn StdError + Send + Sync>>)

Tuple Fields

0: Arc<Rocket<Orbit>>

The instance of Rocket that failed to shutdown.

1: Option<Box<dyn StdError + Send + Sync>>

The error that occurred during shutdown, if any.

Shutdown failed.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

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

Returns the argument unchanged.

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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts self into a collection.

Should always be Self

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.

Attaches 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