Trait naia_shared::MessageHecs
source · pub trait MessageHecs: Send + Sync + Named + MessageClone + Any {
// Required methods
fn kind(&self) -> MessageKind;
fn to_boxed_any(self: Box<Self>) -> Box<dyn Any>;
fn create_builder() -> Box<dyn MessageBuilder>
where Self: Sized;
fn bit_length(
&self,
converter: &mut dyn LocalEntityAndGlobalEntityConverterMut
) -> u32;
fn is_fragment(&self) -> bool;
fn write(
&self,
message_kinds: &MessageKinds,
writer: &mut dyn BitWrite,
converter: &mut dyn LocalEntityAndGlobalEntityConverterMut
);
fn relations_waiting(&self) -> Option<HashSet<RemoteEntity>>;
fn relations_complete(
&mut self,
converter: &dyn LocalEntityAndGlobalEntityConverter
);
}
Required Methods§
sourcefn kind(&self) -> MessageKind
fn kind(&self) -> MessageKind
Gets the MessageKind of this type
fn to_boxed_any(self: Box<Self>) -> Box<dyn Any>
fn create_builder() -> Box<dyn MessageBuilder>where
Self: Sized,
fn bit_length( &self, converter: &mut dyn LocalEntityAndGlobalEntityConverterMut ) -> u32
fn is_fragment(&self) -> bool
sourcefn 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
sourcefn 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
sourcefn 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