pub enum StartupOutcome {
Success,
PartialSuccess {
warnings: usize,
},
Aborted(StartupHookError),
}Expand description
Outcome of running all startup hooks.
Variants§
Success
All hooks succeeded.
PartialSuccess
Some hooks had non-fatal errors (logged but continued).
Aborted(StartupHookError)
A fatal hook error aborted startup.
Implementations§
Source§impl StartupOutcome
impl StartupOutcome
Sourcepub fn can_proceed(&self) -> bool
pub fn can_proceed(&self) -> bool
Returns true if startup can proceed (Success or PartialSuccess).
Sourcepub fn into_error(self) -> Option<StartupHookError>
pub fn into_error(self) -> Option<StartupHookError>
Returns the abort error, if any.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StartupOutcome
impl RefUnwindSafe for StartupOutcome
impl Send for StartupOutcome
impl Sync for StartupOutcome
impl Unpin for StartupOutcome
impl UnwindSafe for StartupOutcome
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).