pub struct EntityEventMessage {
    pub entity: EntityProperty,
    pub action: EntityEventMessageAction,
}

Fields§

§entity: EntityProperty§action: EntityEventMessageAction

Implementations§

source§

impl EntityEventMessage

source

pub fn new_publish<E: Copy + Eq + Hash + Send + Sync>( converter: &dyn EntityAndGlobalEntityConverter<E>, entity: &E ) -> Self

source

pub fn new_unpublish<E: Copy + Eq + Hash + Send + Sync>( converter: &dyn EntityAndGlobalEntityConverter<E>, entity: &E ) -> Self

source

pub fn new_enable_delegation<E: Copy + Eq + Hash + Send + Sync>( converter: &dyn EntityAndGlobalEntityConverter<E>, entity: &E ) -> Self

source

pub fn new_enable_delegation_response<E: Copy + Eq + Hash + Send + Sync>( converter: &dyn EntityAndGlobalEntityConverter<E>, entity: &E ) -> Self

source

pub fn new_disable_delegation<E: Copy + Eq + Hash + Send + Sync>( converter: &dyn EntityAndGlobalEntityConverter<E>, entity: &E ) -> Self

source

pub fn new_request_authority<E: Copy + Eq + Hash + Send + Sync>( converter: &dyn EntityAndGlobalEntityConverter<E>, entity: &E, host_entity: HostEntity ) -> Self

source

pub fn new_release_authority<E: Copy + Eq + Hash + Send + Sync>( converter: &dyn EntityAndGlobalEntityConverter<E>, entity: &E ) -> Self

source

pub fn new_update_auth_status<E: Copy + Eq + Hash + Send + Sync>( converter: &dyn EntityAndGlobalEntityConverter<E>, entity: &E, auth_status: EntityAuthStatus ) -> Self

source

pub fn new_entity_migrate_response<E: Copy + Eq + Hash + Send + Sync>( converter: &dyn EntityAndGlobalEntityConverter<E>, entity: &E, host_entity: HostEntity ) -> Self

Trait Implementations§

source§

impl Clone for EntityEventMessage

source§

fn clone(&self) -> Self

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 Message for EntityEventMessage

source§

fn kind(&self) -> MessageKind

Gets the MessageKind of this type
source§

fn to_boxed_any(self: Box<Self>) -> Box<dyn Any>

source§

fn is_fragment(&self) -> bool

source§

fn bit_length( &self, converter: &mut dyn LocalEntityAndGlobalEntityConverterMut ) -> u32

source§

fn create_builder() -> Box<dyn MessageBuilder>
where Self: Sized,

source§

fn relations_waiting(&self) -> Option<HashSet<RemoteEntity>>

Returns a list of LocalEntities contained within the Message’s EntityProperty fields, which are waiting to be converted to GlobalEntities
source§

fn relations_complete( &mut self, converter: &dyn LocalEntityAndGlobalEntityConverter )

Converts any LocalEntities contained within the Message’s EntityProperty fields to GlobalEntities
source§

fn write( &self, message_kinds: &MessageKinds, writer: &mut dyn BitWrite, converter: &mut dyn LocalEntityAndGlobalEntityConverterMut )

Writes data into an outgoing byte stream
source§

impl Named for EntityEventMessage

source§

fn name(&self) -> String

Gets the String representation of the Type of the Component, used for debugging

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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

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> 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