pub enum Event {
Tell(String),
Give(Item),
Options(Vec<Event>),
Push,
Pull,
Open,
Close,
Nothing,
}Expand description
A primitive event type
Variants§
Tell(String)
Talk to an entity
Give(Item)
Give an item to an entity
Options(Vec<Event>)
Show a list events an entity can handle
Push
Push an entity
Pull
Pull an entity
Open
Open an entity
Close
Close an entity
Nothing
Do nothing
Trait Implementations§
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)