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§
source§impl Debug for LaunchErrorKind
impl Debug for LaunchErrorKind
Auto Trait Implementations§
impl Freeze for LaunchErrorKind
impl !RefUnwindSafe for LaunchErrorKind
impl Send for LaunchErrorKind
impl Sync for LaunchErrorKind
impl Unpin for LaunchErrorKind
impl !UnwindSafe for LaunchErrorKind
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more