pub enum Stage {
Validate,
Process,
Post,
}Expand description
Execution stage for event handlers.
Handlers run in stage order: Validate → Process → Post. If any Validate handler cancels the event, Process and Post are skipped entirely.
- Validate: read-only checks, can cancel (permissions, anti-cheat)
- Process: state mutation, one logical owner (world changes)
- Post: side effects, never cancels (broadcast, storage, logging)
Variants§
Validate
Validation stage: read-only, can cancel. Runs first.
Process
Processing stage: mutates state. Runs second.
Post
Post-processing stage: side effects. Runs last.
Trait Implementations§
Source§impl Ord for Stage
impl Ord for Stage
Source§impl PartialOrd for Stage
impl PartialOrd for Stage
impl Copy for Stage
impl Eq for Stage
impl StructuralPartialEq for Stage
Auto Trait Implementations§
impl Freeze for Stage
impl RefUnwindSafe for Stage
impl Send for Stage
impl Sync for Stage
impl Unpin for Stage
impl UnsafeUnpin for Stage
impl UnwindSafe for Stage
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.