Struct naia_shared::EntityEventMessage
source · pub struct EntityEventMessage {
pub entity: EntityProperty,
pub action: EntityEventMessageAction,
}
Fields§
§entity: EntityProperty
§action: EntityEventMessageAction
Implementations§
source§impl EntityEventMessage
impl EntityEventMessage
pub fn new_publish<E: Copy + Eq + Hash + Send + Sync>( converter: &dyn EntityAndGlobalEntityConverter<E>, entity: &E ) -> Self
pub fn new_unpublish<E: Copy + Eq + Hash + Send + Sync>( converter: &dyn EntityAndGlobalEntityConverter<E>, entity: &E ) -> Self
pub fn new_enable_delegation<E: Copy + Eq + Hash + Send + Sync>( converter: &dyn EntityAndGlobalEntityConverter<E>, entity: &E ) -> Self
pub fn new_enable_delegation_response<E: Copy + Eq + Hash + Send + Sync>( converter: &dyn EntityAndGlobalEntityConverter<E>, entity: &E ) -> Self
pub fn new_disable_delegation<E: Copy + Eq + Hash + Send + Sync>( converter: &dyn EntityAndGlobalEntityConverter<E>, entity: &E ) -> Self
pub fn new_update_auth_status<E: Copy + Eq + Hash + Send + Sync>( converter: &dyn EntityAndGlobalEntityConverter<E>, entity: &E, auth_status: EntityAuthStatus ) -> Self
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
impl Clone for EntityEventMessage
source§impl Message for EntityEventMessage
impl Message for EntityEventMessage
source§fn kind(&self) -> MessageKind
fn kind(&self) -> MessageKind
Gets the MessageKind of this type
fn to_boxed_any(self: Box<Self>) -> Box<dyn Any>
fn is_fragment(&self) -> bool
fn bit_length( &self, converter: &mut dyn LocalEntityAndGlobalEntityConverterMut ) -> u32
fn create_builder() -> Box<dyn MessageBuilder>where
Self: Sized,
source§fn relations_waiting(&self) -> Option<HashSet<RemoteEntity>>
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
)
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
)
fn write( &self, message_kinds: &MessageKinds, writer: &mut dyn BitWrite, converter: &mut dyn LocalEntityAndGlobalEntityConverterMut )
Writes data into an outgoing byte stream
Auto Trait Implementations§
impl !RefUnwindSafe for EntityEventMessage
impl Send for EntityEventMessage
impl Sync for EntityEventMessage
impl Unpin for EntityEventMessage
impl !UnwindSafe for EntityEventMessage
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