Struct OnEffectAddedEvent
pub struct OnEffectAddedEvent {
pub effect: EffectKey,
pub entity: Option<i32>,
pub amplifier: i32,
}Expand description
What Hooks::on_effect_added is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§effect: EffectKey§entity: Option<i32>§amplifier: i32Trait Implementations§
Auto Trait Implementations§
impl Freeze for OnEffectAddedEvent
impl RefUnwindSafe for OnEffectAddedEvent
impl Send for OnEffectAddedEvent
impl Sync for OnEffectAddedEvent
impl Unpin for OnEffectAddedEvent
impl UnsafeUnpin for OnEffectAddedEvent
impl UnwindSafe for OnEffectAddedEvent
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