Enum veloren_common_net::msg::ecs_packet::EcsCompPacket

source ·
pub enum EcsCompPacket {
Show 40 variants Body(Body), Hardcore(Hardcore), Stats(Stats), Buffs(Buffs), Auras(Auras), Energy(Energy), Health(Health), Heads(Heads), Poise(Poise), LightEmitter(LightEmitter), LootOwner(LootOwner), PickupItem(PickupItem), Scale(Scale), Group(Group), IsMount(IsMount), IsRider(IsRider), IsVolumeRider(IsVolumeRider), IsLeader(IsLeader), IsFollower(IsFollower), Mass(Mass), Density(Density), Collider(Collider), Sticky(Sticky), Immovable(Immovable), CharacterState(CharacterState), CharacterActivity(CharacterActivity), Shockwave(Shockwave), Beam(Beam), Alignment(Alignment), Stance(Stance), Inventory(Inventory), SkillSet(SkillSet), Admin(Admin), Combo(Combo), ActiveAbilities(ActiveAbilities), CanBuild(CanBuild), Object(Object), Pos(Pos), Vel(Vel), Ori(Ori),
}

Variants§

§

Body(Body)

§

Hardcore(Hardcore)

§

Stats(Stats)

§

Buffs(Buffs)

§

Auras(Auras)

§

Energy(Energy)

§

Health(Health)

§

Heads(Heads)

§

Poise(Poise)

§

LightEmitter(LightEmitter)

§

LootOwner(LootOwner)

§

PickupItem(PickupItem)

§

Scale(Scale)

§

Group(Group)

§

IsMount(IsMount)

§

IsRider(IsRider)

§

IsVolumeRider(IsVolumeRider)

§

IsLeader(IsLeader)

§

IsFollower(IsFollower)

§

Mass(Mass)

§

Density(Density)

§

Collider(Collider)

§

Sticky(Sticky)

§

Immovable(Immovable)

§

CharacterState(CharacterState)

§

CharacterActivity(CharacterActivity)

§

Shockwave(Shockwave)

§

Beam(Beam)

§

Alignment(Alignment)

§

Stance(Stance)

§

Inventory(Inventory)

§

SkillSet(SkillSet)

§

Admin(Admin)

§

Combo(Combo)

§

ActiveAbilities(ActiveAbilities)

§

CanBuild(CanBuild)

§

Object(Object)

§

Pos(Pos)

§

Vel(Vel)

§

Ori(Ori)

Trait Implementations§

source§

impl Clone for EcsCompPacket

source§

fn clone(&self) -> EcsCompPacket

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl CompPacket for EcsCompPacket

§

type Phantom = EcsCompPhantom

source§

fn apply_insert(self, entity: Entity, world: &World, force_update: bool)

source§

fn apply_modify(self, entity: Entity, world: &World, force_update: bool)

source§

fn apply_remove(phantom: Self::Phantom, entity: Entity, world: &World)

source§

impl Debug for EcsCompPacket

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for EcsCompPacket

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<ActiveAbilities> for EcsCompPacket

source§

fn from(other: ActiveAbilities) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Admin> for EcsCompPacket

source§

fn from(other: Admin) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Alignment> for EcsCompPacket

source§

fn from(other: Alignment) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Auras> for EcsCompPacket

source§

fn from(other: Auras) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Beam> for EcsCompPacket

source§

fn from(other: Beam) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Body> for EcsCompPacket

source§

fn from(other: Body) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Buffs> for EcsCompPacket

source§

fn from(other: Buffs) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<CanBuild> for EcsCompPacket

source§

fn from(other: CanBuild) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<CharacterActivity> for EcsCompPacket

source§

fn from(other: CharacterActivity) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<CharacterState> for EcsCompPacket

source§

fn from(other: CharacterState) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Collider> for EcsCompPacket

source§

fn from(other: Collider) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Combo> for EcsCompPacket

source§

fn from(other: Combo) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Density> for EcsCompPacket

source§

fn from(other: Density) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Energy> for EcsCompPacket

source§

fn from(other: Energy) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Group> for EcsCompPacket

source§

fn from(other: Group) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Hardcore> for EcsCompPacket

source§

fn from(other: Hardcore) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Heads> for EcsCompPacket

source§

fn from(other: Heads) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Health> for EcsCompPacket

source§

fn from(other: Health) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Immovable> for EcsCompPacket

source§

fn from(other: Immovable) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Inventory> for EcsCompPacket

source§

fn from(other: Inventory) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Is<Follower>> for EcsCompPacket

source§

fn from(other: IsFollower) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Is<Leader>> for EcsCompPacket

source§

fn from(other: IsLeader) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Is<Mount>> for EcsCompPacket

source§

fn from(other: IsMount) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Is<Rider>> for EcsCompPacket

source§

fn from(other: IsRider) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Is<VolumeRider>> for EcsCompPacket

source§

fn from(other: IsVolumeRider) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<LightEmitter> for EcsCompPacket

source§

fn from(other: LightEmitter) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<LootOwner> for EcsCompPacket

source§

fn from(other: LootOwner) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Mass> for EcsCompPacket

source§

fn from(other: Mass) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Object> for EcsCompPacket

source§

fn from(other: Object) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Ori> for EcsCompPacket

source§

fn from(other: Ori) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<PickupItem> for EcsCompPacket

source§

fn from(other: PickupItem) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Poise> for EcsCompPacket

source§

fn from(other: Poise) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Pos> for EcsCompPacket

source§

fn from(other: Pos) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Scale> for EcsCompPacket

source§

fn from(other: Scale) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Shockwave> for EcsCompPacket

source§

fn from(other: Shockwave) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<SkillSet> for EcsCompPacket

source§

fn from(other: SkillSet) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Stance> for EcsCompPacket

source§

fn from(other: Stance) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Stats> for EcsCompPacket

source§

fn from(other: Stats) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Sticky> for EcsCompPacket

source§

fn from(other: Sticky) -> EcsCompPacket

Converts to this type from the input type.
source§

impl From<Vel> for EcsCompPacket

source§

fn from(other: Vel) -> EcsCompPacket

Converts to this type from the input type.
source§

impl Serialize for EcsCompPacket

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl SumType for EcsCompPacket

source§

fn variants(&self) -> &'static [&'static str]

A list of all possible variants.
source§

fn variant(&self) -> &'static str

The name of the current variant.
source§

fn downcast_ref<T: Any>(&self) -> Option<&T>

Try to get a reference to the inner field if it is a T.
source§

fn downcast_mut<T: Any>(&mut self) -> Option<&mut T>

Return a mutable reference to the inner field if it is a T.
source§

fn variant_is<T: Any>(&self) -> bool

Is the underlying variant an instance of T?
source§

impl TryFrom<EcsCompPacket> for ActiveAbilities

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<ActiveAbilities, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for Admin

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<Admin, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for Alignment

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<Alignment, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for Auras

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<Auras, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for Beam

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<Beam, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for Body

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<Body, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for Buffs

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<Buffs, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for CanBuild

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<CanBuild, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for CharacterActivity

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<CharacterActivity, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for CharacterState

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<CharacterState, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for Collider

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<Collider, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for Combo

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<Combo, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for Density

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<Density, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for Energy

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<Energy, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for Group

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<Group, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for Hardcore

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<Hardcore, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for Heads

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<Heads, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for Health

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<Health, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for Immovable

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<Immovable, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for Inventory

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<Inventory, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for IsFollower

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<IsFollower, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for IsLeader

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<IsLeader, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for IsMount

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<IsMount, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for IsRider

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<IsRider, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for IsVolumeRider

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<IsVolumeRider, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for LightEmitter

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<LightEmitter, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for LootOwner

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<LootOwner, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for Mass

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<Mass, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for Object

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<Object, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for Ori

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<Ori, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for PickupItem

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<PickupItem, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for Poise

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<Poise, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for Pos

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<Pos, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for Scale

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<Scale, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for Shockwave

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<Shockwave, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for SkillSet

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<SkillSet, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for Stance

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<Stance, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for Stats

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<Stats, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for Sticky

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<Sticky, Self::Error>

Performs the conversion.
source§

impl TryFrom<EcsCompPacket> for Vel

§

type Error = InvalidType

The type returned in the event of a conversion error.
source§

fn try_from(other: EcsCompPacket) -> Result<Vel, Self::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<C, M> ConvertSaveload<M> for C

§

type Data = C

(De)Serializable data representation for data type
§

type Error = Infallible

Error may occur during serialization or deserialization of component
§

fn convert_into<F>( &self, _: F, ) -> Result<<C as ConvertSaveload<M>>::Data, <C as ConvertSaveload<M>>::Error>
where F: FnMut(Entity) -> Option<M>,

Convert this data type into serializable form (Data) using entity to marker mapping function
§

fn convert_from<F>( data: <C as ConvertSaveload<M>>::Data, _: F, ) -> Result<C, <C as ConvertSaveload<M>>::Error>
where F: FnMut(M) -> Option<Entity>,

Convert this data from a deserializable form (Data) using entity to marker mapping function
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
§

impl<Context> SubContext<Context> for Context

§

fn sub_context(self) -> Context

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

§

impl<T> Event for T
where T: Send + Sync + 'static,

§

impl<T> Resource for T
where T: Any + Send + Sync,

§

impl<T> Storable for T
where T: Send + Sync + 'static,