pub struct SpawnEvent {
pub id: SpawnerId,
pub action: SpawnAction,
}Expand description
A SpawnEvent is an event created by the spawner for the system
The action that the system should execute is encoded in the action field.
The spawner should make sure that it only ever sends events with its own
spawner id.
Fields§
§id: SpawnerId§action: SpawnActionImplementations§
Source§impl SpawnEvent
impl SpawnEvent
pub fn new(id: SpawnerId, action: SpawnAction) -> SpawnEvent
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpawnEvent
impl !RefUnwindSafe for SpawnEvent
impl Send for SpawnEvent
impl Sync for SpawnEvent
impl Unpin for SpawnEvent
impl !UnwindSafe for SpawnEvent
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