Enum ActionOutcome
#[non_exhaustive]pub enum ActionOutcome {
Consumed,
Passed,
EffectBlocked(FakeEffect),
}Expand description
What a fake player’s action did once it ran.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Consumed
Vanilla’s InteractionResult consumed (a success or a consume), and no effect was
blocked.
Passed
Nothing consumed the click: vanilla passed or failed, or a mod stopped the action.
EffectBlocked(FakeEffect)
The click ran (the swing, the hooks before the use, vanilla’s Success), but the effect
it would start was stopped, as a fake can’t take part in it.
Trait Implementations§
§impl Clone for ActionOutcome
impl Clone for ActionOutcome
§fn clone(&self) -> ActionOutcome
fn clone(&self) -> ActionOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ActionOutcome
§impl Debug for ActionOutcome
impl Debug for ActionOutcome
impl Eq for ActionOutcome
§impl PartialEq for ActionOutcome
impl PartialEq for ActionOutcome
impl StructuralPartialEq for ActionOutcome
Auto Trait Implementations§
impl Freeze for ActionOutcome
impl RefUnwindSafe for ActionOutcome
impl Send for ActionOutcome
impl Sync for ActionOutcome
impl Unpin for ActionOutcome
impl UnsafeUnpin for ActionOutcome
impl UnwindSafe for ActionOutcome
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