pub struct ResolverError {
kind: ResolverErrorKind,
}Expand description
Resolver failure with stable, situation-oriented construction and inspection APIs.
Fields§
§kind: ResolverErrorKindImplementations§
Source§impl ResolverError
impl ResolverError
pub fn spell_not_found(spell_id: SpellId) -> Self
pub fn spell_effect_not_found(spell_id: SpellId, effect_index: u8) -> Self
pub fn item_not_found(item_id: i32) -> Self
pub fn trait_tree_not_found(spec_id: i32) -> Self
pub fn expansion_trait_tree_not_found( expansion_id: i32, system: impl Into<String>, ) -> Self
pub fn spec_not_found(spec_id: i32) -> Self
pub fn rotation_script_not_found(rotation_id: impl Into<String>) -> Self
pub fn expected_stats_not_found(expansion_id: i32, lvl: i32) -> Self
pub fn creature_not_found(creature_id: i32) -> Self
pub fn content_tuning_not_found(content_tuning_id: i32) -> Self
pub fn expected_stat_mod_not_found(expected_stat_mod_id: i32) -> Self
pub fn challenge_mode_health_not_found(keystone_level: i32) -> Self
pub fn item_damage_scaling_not_found( weapon_type: impl Into<String>, item_level: i32, ) -> Self
pub fn enchantment_not_found(enchantment_id: i32) -> Self
pub fn no_scaling_data() -> Self
pub fn unsupported(method: &'static str) -> Self
pub fn filesystem(source: Error) -> Self
pub fn decode( op: &'static str, source: impl Into<Box<dyn Error + Send + Sync + 'static>>, ) -> Self
pub fn js_bridge(method: impl Into<String>, message: impl Into<String>) -> Self
pub fn backend( op: &'static str, source: impl Into<Box<dyn Error + Send + Sync + 'static>>, ) -> Self
pub fn env_var(message: impl Into<String>) -> Self
pub fn is_spell_not_found(&self) -> bool
pub fn is_item_not_found(&self) -> bool
pub fn is_trait_tree_not_found(&self) -> bool
pub fn is_spec_not_found(&self) -> bool
pub fn is_rotation_script_not_found(&self) -> bool
pub fn is_expected_stats_not_found(&self) -> bool
pub fn is_creature_not_found(&self) -> bool
pub fn is_content_tuning_not_found(&self) -> bool
pub fn is_expected_stat_mod_not_found(&self) -> bool
pub fn is_challenge_mode_health_not_found(&self) -> bool
pub fn is_no_scaling_data(&self) -> bool
pub fn spell_not_found_id(&self) -> Option<SpellId>
pub fn spell_effect_not_found_coordinate(&self) -> Option<(SpellId, u8)>
Trait Implementations§
Source§impl Debug for ResolverError
impl Debug for ResolverError
Source§impl Display for ResolverError
impl Display for ResolverError
Source§impl Error for ResolverError
impl Error for ResolverError
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<Error> for ResolverError
impl From<Error> for ResolverError
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<ResolverError> for EngineErrorKind
impl From<ResolverError> for EngineErrorKind
Source§fn from(source: ResolverError) -> Self
fn from(source: ResolverError) -> Self
Converts to this type from the input type.
Source§impl From<TraitError> for ResolverError
impl From<TraitError> for ResolverError
Source§fn from(source: TraitError) -> Self
fn from(source: TraitError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResolverError
impl !RefUnwindSafe for ResolverError
impl Send for ResolverError
impl Sync for ResolverError
impl Unpin for ResolverError
impl UnsafeUnpin for ResolverError
impl !UnwindSafe for ResolverError
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