#[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
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
Shutdown failed.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe for ErrorKind
Blanket Implementations
impl<'a, T> AsTaggedExplicit<'a> for T where
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for T where
T: 'a,
fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self>
impl<'a, T> AsTaggedImplicit<'a> for T where
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for T where
T: 'a,
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> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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.
fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
F: FnMut(T) -> U,
A: Array<Item = U>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
