pub trait MessageBevy:
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 is_request(&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
fn is_request(&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