Enum veloren_common::comp::aura::AuraChange
source · pub enum AuraChange {
Add(Aura),
RemoveByKey(Vec<AuraKey>),
EnterAura(Uid, AuraKey, AuraKindVariant),
ExitAura(Uid, AuraKey, AuraKindVariant),
}
Expand description
Information about whether aura addition or removal was requested. This to implement “on_add” and “on_remove” hooks for auras
Variants§
Add(Aura)
Adds this aura
RemoveByKey(Vec<AuraKey>)
Removes auras of these indices
EnterAura(Uid, AuraKey, AuraKindVariant)
ExitAura(Uid, AuraKey, AuraKindVariant)
Trait Implementations§
source§impl Clone for AuraChange
impl Clone for AuraChange
source§fn clone(&self) -> AuraChange
fn clone(&self) -> AuraChange
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for AuraChange
impl Send for AuraChange
impl Sync for AuraChange
impl Unpin for AuraChange
impl UnwindSafe for AuraChange
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