pub(crate) enum CastReject {
Show 27 variants
NoTarget,
UnknownSpell,
Disabled,
PrimaryResource {
have: f64,
cost: f64,
},
SecondaryResource {
have: f64,
cost: f64,
},
Health {
have: f64,
cost: f64,
},
NoCharges,
Cooldown {
ready_at: f64,
now: f64,
},
CooldownCategory {
category: CooldownCategoryId,
ready_at: SimTime,
now: SimTime,
},
ChargeCategory {
category: CooldownCategoryId,
ready_at: SimTime,
now: SimTime,
},
StartRecoveryCategory {
category: CooldownCategoryId,
ready_at: SimTime,
now: SimTime,
},
ExecuteRange {
target_health_pct: f64,
threshold_pct: f64,
},
GatingAuraUnknown {
aura_id: u32,
},
GatingAuraInactive {
aura_id: u32,
min_stacks: i32,
},
RequiresStealth,
RequiresBehindTarget,
RequiresUnshifted {
form: i64,
},
ShapeshiftRequired {
form: i64,
required_mask: u64,
},
ShapeshiftExcluded {
form: i64,
},
RequiresMainHand,
RequiresOffHand,
EquippedItemRequirement,
Moving,
SchoolLocked,
CrowdControlled,
AuraState,
OutOfRange,
}Expand description
Why a spell cannot be cast this instant.
Variants§
NoTarget
UnknownSpell
Disabled
PrimaryResource
SecondaryResource
Health
NoCharges
Cooldown
CooldownCategory
ChargeCategory
StartRecoveryCategory
ExecuteRange
GatingAuraUnknown
GatingAuraInactive
RequiresStealth
RequiresBehindTarget
RequiresUnshifted
ShapeshiftRequired
ShapeshiftExcluded
RequiresMainHand
RequiresOffHand
EquippedItemRequirement
Moving
SchoolLocked
CrowdControlled
AuraState
OutOfRange
Trait Implementations§
Source§impl Clone for CastReject
impl Clone for CastReject
Source§fn clone(&self) -> CastReject
fn clone(&self) -> CastReject
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CastReject
impl Debug for CastReject
Source§impl Display for CastReject
impl Display for CastReject
impl Copy for CastReject
Auto Trait Implementations§
impl Freeze for CastReject
impl RefUnwindSafe for CastReject
impl Send for CastReject
impl Sync for CastReject
impl Unpin for CastReject
impl UnsafeUnpin for CastReject
impl UnwindSafe for CastReject
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
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