Enum rocket::error::LaunchErrorKind[][src]

pub enum LaunchErrorKind {
    Bind(Error),
    Io(Error),
    Collision(Vec<(Route, Route)>),
    FailedFairings(Vec<&'static str>),
    Unknown(Box<dyn Error + Send + Sync>),
}
Expand description

The kind of launch 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. The Unknown variant captures all other kinds of launch errors.

Variants

Bind(Error)

Binding to the provided address/port failed.

Tuple Fields of Bind

0: Error
Io(Error)

An I/O error occurred during launch.

Tuple Fields of Io

0: Error
Collision(Vec<(Route, Route)>)

Route collisions were detected.

Tuple Fields of Collision

0: Vec<(Route, Route)>
FailedFairings(Vec<&'static str>)

A launch fairing reported an error.

Tuple Fields of FailedFairings

0: Vec<&'static str>
Unknown(Box<dyn Error + Send + Sync>)

An otherwise uncategorized error occurred during launch.

Tuple Fields of Unknown

0: Box<dyn Error + Send + Sync>

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

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.

Performs the conversion.

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.

Get the TypeId of this object.