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§

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

source§

fn name(&self) -> String

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

Implementors§