Enum rocket::error::LaunchErrorKind
source · [−]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.
Io(Error)
An I/O error occurred during launch.
Collision(Vec<(Route, Route)>)
Route collisions were detected.
FailedFairings(Vec<&'static str>)
A launch fairing reported an error.
Unknown(Box<dyn Error + Send + Sync>)
An otherwise uncategorized error occurred during launch.
Trait Implementations
sourceimpl Debug for LaunchErrorKind
impl Debug for LaunchErrorKind
Auto Trait Implementations
impl !RefUnwindSafe for LaunchErrorKind
impl Send for LaunchErrorKind
impl Sync for LaunchErrorKind
impl Unpin for LaunchErrorKind
impl !UnwindSafe for LaunchErrorKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
sourcefn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self into a collection.