MessageBevy

Trait MessageBevy 

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

Source

fn kind(&self) -> MessageKind

Gets the MessageKind of this type

Source

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

Source

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

Source

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

Source

fn is_fragment(&self) -> bool

Source

fn is_request(&self) -> bool

Source

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

Writes data into an outgoing byte stream

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

Trait Implementations§

Source§

impl Clone for Box<dyn Message>

Source§

fn clone(&self) -> Box<dyn Message>

Returns a duplicate 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 Named for Box<dyn Message>

Source§

fn name(&self) -> String

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

Implementors§