Struct EventPluginized
pub struct EventPluginized<E, S>where
E: Event,
S: State,{ /* private fields */ }Implementations§
§impl<E, S> EventPluginized<E, S>where
E: Event,
S: State,
impl<E, S> EventPluginized<E, S>where
E: Event,
S: State,
pub fn now(event: E) -> EventPluginized<E, S>
pub fn delayed(event: E, ticks: u64) -> EventPluginized<E, S>
pub fn cron(event: E, cron_mark: CronMark<E, S>) -> EventPluginized<E, S>
pub fn event(&self) -> &E
pub fn event_mut(&mut self) -> &mut E
pub fn event_mut(&mut self) -> &mut E
Mutable access to the wrapped event, for handlers that annotate an event’s payload after it was built (e.g. combat provenance) without disturbing its plugin marks.
pub fn into_parts(self) -> (E, Option<DelayedMark>, Option<CronMark<E, S>>)
pub fn into_parts(self) -> (E, Option<DelayedMark>, Option<CronMark<E, S>>)
Decompose into the event and its plugin marks. Used by drivers that schedule delayed/cron events themselves instead of going through the system plugins (e.g. the fight engine).
pub fn get_delayed(&self) -> Option<&DelayedMark>
pub fn get_cron(&self) -> Option<&CronMark<E, S>>
Trait Implementations§
Auto Trait Implementations§
impl<E, S> Freeze for EventPluginized<E, S>where
E: Freeze,
impl<E, S> !RefUnwindSafe for EventPluginized<E, S>
impl<E, S> Send for EventPluginized<E, S>
impl<E, S> Sync for EventPluginized<E, S>
impl<E, S> Unpin for EventPluginized<E, S>where
E: Unpin,
impl<E, S> !UnwindSafe for EventPluginized<E, S>
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