pub struct SpecRuntimeError {
kind: SpecRuntimeErrorKind,
}Expand description
Fatal typed failure raised by a spec handler while processing one simulation event.
Fields§
§kind: SpecRuntimeErrorKindImplementations§
Source§impl SpecRuntimeError
impl SpecRuntimeError
Sourcepub const fn missing_enemy(enemy: EnemyIdx) -> Self
pub const fn missing_enemy(enemy: EnemyIdx) -> Self
Reports an enemy absent from canonical encounter state.
Sourcepub const fn enemy_death_spatial_removal(
enemy: EnemyIdx,
source: SpatialQueryError,
) -> Self
pub const fn enemy_death_spatial_removal( enemy: EnemyIdx, source: SpatialQueryError, ) -> Self
Wraps a spatial removal failure during enemy death.
Sourcepub fn encounter_stalled(
pull: PullId,
incomplete_required_groups: Vec<GroupId>,
inactive_live_enemies: Vec<EnemyIdx>,
) -> Self
pub fn encounter_stalled( pull: PullId, incomplete_required_groups: Vec<GroupId>, inactive_live_enemies: Vec<EnemyIdx>, ) -> Self
Reports a pull that cannot make further progress.
Sourcepub fn encounter_script(pull: PullId, message: impl Into<String>) -> Self
pub fn encounter_script(pull: PullId, message: impl Into<String>) -> Self
Reports an invalid authored encounter script event.
Sourcepub const fn invalid_empower_rank(
spell_id: u32,
requested_rank: u8,
max_rank: u8,
) -> Self
pub const fn invalid_empower_rank( spell_id: u32, requested_rank: u8, max_rank: u8, ) -> Self
Reports a cast action whose selected empower rank is outside the spell’s stage data.
Sourcepub const fn enemy_death_spatial_removal_details(
&self,
) -> Option<(EnemyIdx, SpatialQueryError)>
pub const fn enemy_death_spatial_removal_details( &self, ) -> Option<(EnemyIdx, SpatialQueryError)>
Returns the enemy and spatial cause for a death-removal failure.
Trait Implementations§
Source§impl Debug for SpecRuntimeError
impl Debug for SpecRuntimeError
Source§impl Display for SpecRuntimeError
impl Display for SpecRuntimeError
Source§impl Error for SpecRuntimeError
impl Error for SpecRuntimeError
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()
Auto Trait Implementations§
impl Freeze for SpecRuntimeError
impl RefUnwindSafe for SpecRuntimeError
impl Send for SpecRuntimeError
impl Sync for SpecRuntimeError
impl Unpin for SpecRuntimeError
impl UnsafeUnpin for SpecRuntimeError
impl UnwindSafe for SpecRuntimeError
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
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> SpecConfig for T
impl<T> SpecConfig for T
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more