pub enum BusKind {
Instant,
Game,
}Expand description
Which event bus an event type belongs to.
- Instant: dispatched immediately in the net task (chat, commands). No tick latency. Handlers run inline in the sending player’s task.
- Game: dispatched in the game loop tick (blocks, movement, lifecycle). Tick-based with ECS access.
Variants§
Instant
Events dispatched instantly in the net task (chat, commands).
Game
Events dispatched in the game loop tick (blocks, movement, lifecycle).
Trait Implementations§
impl Copy for BusKind
impl Eq for BusKind
impl StructuralPartialEq for BusKind
Auto Trait Implementations§
impl Freeze for BusKind
impl RefUnwindSafe for BusKind
impl Send for BusKind
impl Sync for BusKind
impl Unpin for BusKind
impl UnsafeUnpin for BusKind
impl UnwindSafe for BusKind
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> 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.