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) -> ResolverError
pub fn spell_effect_not_found( spell_id: SpellId, effect_index: u8, ) -> ResolverError
pub fn item_not_found(item_id: i32) -> ResolverError
pub fn trait_tree_not_found(spec_id: i32) -> ResolverError
pub fn expansion_trait_tree_not_found( expansion_id: i32, system: impl Into<String>, ) -> ResolverError
pub fn spec_not_found(spec_id: i32) -> ResolverError
pub fn rotation_script_not_found( rotation_id: impl Into<String>, ) -> ResolverError
pub fn expected_stats_not_found(expansion_id: i32, lvl: i32) -> ResolverError
pub fn creature_not_found(creature_id: i32) -> ResolverError
pub fn content_tuning_not_found(content_tuning_id: i32) -> ResolverError
pub fn expected_stat_mod_not_found(expected_stat_mod_id: i32) -> ResolverError
pub fn challenge_mode_health_not_found(keystone_level: i32) -> ResolverError
pub fn item_damage_scaling_not_found( weapon_type: impl Into<String>, item_level: i32, ) -> ResolverError
pub fn enchantment_not_found(enchantment_id: i32) -> ResolverError
pub fn no_scaling_data() -> ResolverError
pub fn unsupported(method: &'static str) -> ResolverError
pub fn filesystem(source: Error) -> ResolverError
pub fn decode( op: &'static str, source: impl Into<Box<dyn Error + Sync + Send>>, ) -> ResolverError
pub fn js_bridge( method: impl Into<String>, message: impl Into<String>, ) -> ResolverError
pub fn backend( op: &'static str, source: impl Into<Box<dyn Error + Sync + Send>>, ) -> ResolverError
pub fn env_var(message: impl Into<String>) -> ResolverError
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§fn from(source: Error) -> ResolverError
fn from(source: Error) -> ResolverError
Converts to this type from the input type.
Source§impl From<TraitError> for ResolverError
impl From<TraitError> for ResolverError
Source§fn from(source: TraitError) -> ResolverError
fn from(source: TraitError) -> ResolverError
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
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§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.