pub enum AsterRuntimeError {
MissingService,
DuplicateService,
ComponentGraph {
source: RuntimeComponentGraphError,
},
Startup {
report: StartupReport,
shutdown_report: ShutdownReport,
},
Service {
shutdown_report: ShutdownReport,
before_shutdown_panicked: bool,
},
BeforeShutdown {
shutdown_report: ShutdownReport,
},
Shutdown {
report: ShutdownReport,
},
}Expand description
Error returned when runtime assembly or startup/shutdown lifecycle work fails.
Variants§
MissingService
No service component was registered.
DuplicateService
More than one service component was registered.
ComponentGraph
Runtime component dependencies cannot be resolved.
Fields
source: RuntimeComponentGraphErrorUnderlying component graph validation error.
Startup
A required startup phase aborted runtime startup.
Fields
report: StartupReportStartup report that contains the failing phase.
shutdown_report: ShutdownReportCleanup report, including any secondary drain or dependency-close failures.
Service
The main service panicked. Product hooks and component cleanup still ran.
Fields
shutdown_report: ShutdownReportCleanup report, including secondary drain or dependency-close failures.
BeforeShutdown
The product before-shutdown hook panicked. Component cleanup still completed.
Fields
shutdown_report: ShutdownReportCleanup report, including secondary drain or dependency-close failures.
Shutdown
One or more shutdown phases failed or timed out. All remaining phases still ran.
Fields
report: ShutdownReportComplete ordered report, including failures and dependency cleanup results.
Trait Implementations§
Source§impl Clone for AsterRuntimeError
impl Clone for AsterRuntimeError
Source§fn clone(&self) -> AsterRuntimeError
fn clone(&self) -> AsterRuntimeError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AsterRuntimeError
impl Debug for AsterRuntimeError
Source§impl Display for AsterRuntimeError
impl Display for AsterRuntimeError
Source§impl Error for AsterRuntimeError
impl Error for AsterRuntimeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl PartialEq for AsterRuntimeError
impl PartialEq for AsterRuntimeError
impl Eq for AsterRuntimeError
impl StructuralPartialEq for AsterRuntimeError
Auto Trait Implementations§
impl Freeze for AsterRuntimeError
impl RefUnwindSafe for AsterRuntimeError
impl Send for AsterRuntimeError
impl Sync for AsterRuntimeError
impl Unpin for AsterRuntimeError
impl UnsafeUnpin for AsterRuntimeError
impl UnwindSafe for AsterRuntimeError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.