#[non_exhaustive]pub struct EngineError {
kind: EngineErrorKind,
}Expand description
Engine error categories.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: EngineErrorKindImplementations§
Source§impl EngineError
impl EngineError
Sourcepub fn rotation_compile(source: impl Error + Send + Sync + 'static) -> Self
pub fn rotation_compile(source: impl Error + Send + Sync + 'static) -> Self
Retains a typed rotation-construction source behind the Ports boundary.
Sourcepub fn spec_construction_source(
source: impl Error + Send + Sync + 'static,
) -> Self
pub fn spec_construction_source( source: impl Error + Send + Sync + 'static, ) -> Self
Retains a typed combat-system construction source behind the Ports boundary.
Sourcepub const fn spell_id_conversion(
context: &'static str,
source: SpellIdConversionError,
) -> Self
pub const fn spell_id_conversion( context: &'static str, source: SpellIdConversionError, ) -> Self
Wraps a runtime-to-database spell-ID conversion with use-case context.
pub fn is_intent_validation(&self) -> bool
pub fn is_chunk_validation(&self) -> bool
Sourcepub fn is_spec_construction(&self) -> bool
pub fn is_spec_construction(&self) -> bool
Returns whether this is a spec-construction failure.
pub fn message(&self) -> Option<&str>
Source§impl EngineError
impl EngineError
pub fn intent_validation(message: impl Into<String>) -> Self
pub fn chunk_validation(message: impl Into<String>) -> Self
pub fn spec_construction(message: impl Into<String>) -> Self
pub fn spec_not_found(message: impl Into<String>) -> Self
pub fn simulation_runtime(message: impl Into<String>) -> Self
Trait Implementations§
Source§impl Debug for EngineError
impl Debug for EngineError
Source§impl Display for EngineError
impl Display for EngineError
Source§impl Error for EngineError
impl Error for EngineError
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()
Source§impl From<ContentCatalogError> for EngineError
impl From<ContentCatalogError> for EngineError
Source§fn from(error: ContentCatalogError) -> Self
fn from(error: ContentCatalogError) -> Self
Converts to this type from the input type.
Source§impl From<DeclaredSpecMetadataError> for EngineError
impl From<DeclaredSpecMetadataError> for EngineError
Source§fn from(error: DeclaredSpecMetadataError) -> Self
fn from(error: DeclaredSpecMetadataError) -> Self
Converts to this type from the input type.
Source§impl From<EncounterConstructionError> for EngineError
impl From<EncounterConstructionError> for EngineError
Source§fn from(error: EncounterConstructionError) -> Self
fn from(error: EncounterConstructionError) -> Self
Converts to this type from the input type.
Source§impl From<EncounterValidationError> for EngineError
impl From<EncounterValidationError> for EngineError
Source§fn from(error: EncounterValidationError) -> Self
fn from(error: EncounterValidationError) -> Self
Converts to this type from the input type.
Source§impl From<GameDataError> for EngineError
impl From<GameDataError> for EngineError
Source§fn from(source: GameDataError) -> Self
fn from(source: GameDataError) -> Self
Converts to this type from the input type.
Source§impl From<ResolverError> for EngineError
impl From<ResolverError> for EngineError
Source§fn from(error: ResolverError) -> Self
fn from(error: ResolverError) -> Self
Converts to this type from the input type.
Source§impl From<SimRunError> for EngineError
impl From<SimRunError> for EngineError
Source§fn from(error: SimRunError) -> Self
fn from(error: SimRunError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EngineError
impl !RefUnwindSafe for EngineError
impl Send for EngineError
impl Sync for EngineError
impl Unpin for EngineError
impl UnsafeUnpin for EngineError
impl !UnwindSafe for EngineError
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