#[non_exhaustive]pub enum AppError {
InvalidDelta,
PendingIdleCommands,
WorldMutationPoisoned,
TerminalFault,
WorldTickExhausted,
FixedStepExhausted,
InvalidUpdatePlan(ScheduleError),
Fault(AppFault),
}Expand description
Recoverable preflight failures and terminal execution faults for App.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidDelta
delta_seconds was negative, NaN, or infinite.
PendingIdleCommands
Deferred commands remain unflushed before the next pass.
WorldMutationPoisoned
A prior mutation left the world in a poisoned state.
TerminalFault
The application already recorded a terminal fault.
WorldTickExhausted
crate::time::WorldTick cannot advance further.
FixedStepExhausted
Fixed-step indices cannot advance further.
InvalidUpdatePlan(ScheduleError)
UpdatePlan selection failed schedule validation.
Fault(AppFault)
A system or stage pass aborted with location detail.
Trait Implementations§
impl Eq for AppError
Source§impl Error for AppError
Available on crate feature std only.
impl Error for AppError
Available on crate feature
std only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for AppError
Auto Trait Implementations§
impl Freeze for AppError
impl RefUnwindSafe for AppError
impl Send for AppError
impl Sync for AppError
impl Unpin for AppError
impl UnsafeUnpin for AppError
impl UnwindSafe for AppError
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